From edba1aebb51a7bb4f8a5f4f069fba3ed9540d729 Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Tue, 23 Apr 2019 19:18:22 +0300 Subject: Add WebSockets support to mod_mqtt Example configuration: listen: ... - port: 5280 module: ejabberd_http request_handlers: "/mqtt": mod_mqtt modules: ... mod_mqtt: {} --- src/mod_mqtt_session.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mod_mqtt_session.erl') diff --git a/src/mod_mqtt_session.erl b/src/mod_mqtt_session.erl index d988b513e..bbcf9258a 100644 --- a/src/mod_mqtt_session.erl +++ b/src/mod_mqtt_session.erl @@ -64,8 +64,8 @@ session_expiry_non_zero | unknown_topic_alias. -type state() :: #state{}. --type sockmod() :: gen_tcp | fast_tls. --type socket() :: {sockmod(), inet:socket() | fast_tls:tls_socket()}. +-type sockmod() :: gen_tcp | fast_tls | mod_mqtt_ws. +-type socket() :: {sockmod(), inet:socket() | fast_tls:tls_socket() | mod_mqtt_ws:socket()}. -type peername() :: {inet:ip_address(), inet:port_number()}. -type seconds() :: non_neg_integer(). -type milli_seconds() :: non_neg_integer(). -- cgit v1.2.3