API Reference ws v#0.3.0
View SourceModules
Public entry point for the ws application.
WebSocket client connect for ws:// / wss:// URLs.
Close-code classification and validation (RFC 6455 §7.4).
RFC 7692 — permessage-deflate extension helpers.
RFC 6455 frame codec.
Reference HTTP/1.1 WebSocket server over gen_tcp.
RFC 6455 handshake helpers for WebSocket over HTTP/1.1.
RFC 8441 — Bootstrapping WebSockets with HTTP/2.
RFC 9220 — Bootstrapping WebSockets with HTTP/3.
User handler behaviour. The session dispatches inbound messages and out-of-band Erlang messages to the callback module supplied at ws:accept/5 / ws:connect/2 time.
WebSocket session state machine.
Transport behaviour — a thin abstraction the session uses to exchange bytes on the stream handle supplied by the embedder.
Reference ws_transport implementation over plain gen_tcp.
ws_transport implementation over OTP ssl. Used by the client for wss:// URLs. Mirrors ws_transport_gen_tcp in every respect except the module calls and message shape.