]> granicus.if.org Git - ejabberd/commitdiff
Add send_ws_ping to c2s
authorPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 29 Oct 2018 10:57:45 +0000 (11:57 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 29 Oct 2018 11:30:59 +0000 (12:30 +0100)
rebar.config
src/ejabberd_c2s.erl

index 2d8711e2e5464cedbf33b4a99e870cc444c5ca8f..fe8c8ab721a04a1aea6ed3a6493804dd1cf7b760 100644 (file)
@@ -25,7 +25,7 @@
         {fast_tls, ".*", {git, "https://github.com/processone/fast_tls", "9b25543cf1200e3b216996598771962461ea51c8"}},
         {stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.14"}}},
         {fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.34"}}},
-        {xmpp, ".*", {git, "https://github.com/processone/xmpp", {tag, "1.2.5"}}},
+        {xmpp, ".*", {git, "https://github.com/processone/xmpp", "032548195547c68e77c7d89f51e3fbe0522fc218"}},
         {fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.17"}}},
         {jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
         {p1_oauth2, ".*", {git, "https://github.com/processone/p1_oauth2", {tag, "0.6.3"}}},
index db7fb9bdf8f42147a035c7551768dacc825f749c..c65e71bdf9cf0e660a771f5a72fb28c2e58fa622 100644 (file)
@@ -49,7 +49,7 @@
 -export([get_presence/1, set_presence/2, resend_presence/1, resend_presence/2,
         open_session/1, call/3, cast/2, send/2, close/1, close/2, stop/1,
         reply/2, copy_state/2, set_timeout/2, route/2,
-        host_up/1, host_down/1]).
+        host_up/1, host_down/1, send_ws_ping/1]).
 
 -include("xmpp.hrl").
 -include("logger.hrl").
@@ -137,6 +137,11 @@ send_error(#{lserver := LServer} = State, Pkt, Err) ->
        {Pkt1, State1} -> xmpp_stream_in:send_error(State1, Pkt1, Err)
     end.
 
+-spec send_ws_ping(pid()) -> ok;
+                 (state()) -> state().
+send_ws_ping(Ref) ->
+    xmpp_stream_in:send_ws_ping(Ref).
+
 -spec route(pid(), term()) -> boolean().
 route(Pid, Term) ->
     ejabberd_cluster:send(Pid, Term).