emqtt_ws (emqtt v1.15.1)

View Source

Summary

Types

connection/0

-type connection() :: {_Conn :: pid(), gun:stream_ref()}.

option/0

-type option() :: {ws_path, string()}.

Functions

close(_)

-spec close({pid(), gun:stream_ref()}) -> ok.

connect(Host0, Port, Opts, Timeout)

getstat(WsPid, Options)

send(_, Data)

-spec send({pid(), gun:stream_ref()}, iodata()) -> ok.

setopts(WsPid, Opts)