mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Add WebSockets support to mod_mqtt
Example configuration: listen: ... - port: 5280 module: ejabberd_http request_handlers: "/mqtt": mod_mqtt modules: ... mod_mqtt: {}
This commit is contained in:
parent
d2ea905926
commit
edba1aebb5
3 changed files with 178 additions and 2 deletions
|
@ -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().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue