Helpers for the IRCv3 WebSocket transport conventions.
The WebSocket spec carries one IRC line per WebSocket message without the trailing CRLF used by TCP transports.
Socket lifecycle is intentionally delegated to adapter modules implementing
Ircxd.WebSocket.Adapter, so host applications can use Phoenix Channels or
another WebSocket stack without forcing that dependency into this library.
Summary
Functions
Returns the IRCv3 binary WebSocket subprotocol name.
Closes a WebSocket adapter if it implements the optional callback.
Decodes one :text or :binary WebSocket payload as an IRC message.
Encodes one IRC message for a :text or :binary WebSocket frame.
Encodes one IRC line and sends it through a WebSocket adapter.
Returns subprotocol names in preference order.
Returns the IRCv3 text WebSocket subprotocol name.
Functions
Returns the IRCv3 binary WebSocket subprotocol name.
Closes a WebSocket adapter if it implements the optional callback.
Decodes one :text or :binary WebSocket payload as an IRC message.
Encodes one IRC message for a :text or :binary WebSocket frame.
Encodes one IRC line and sends it through a WebSocket adapter.
Returns subprotocol names in preference order.
Returns the IRCv3 text WebSocket subprotocol name.