Skip to main content

Module ws

Module ws 

Source
Expand description

WebSocket transport for JMAP (RFC 8887).

Provides connect_ws which establishes a WebSocket connection and returns a WsSession for sending and receiving frames.

URL source: Session::capabilities["urn:ietf:params:jmap:websocket"].url (the session document advertises the WebSocket endpoint).

Structs§

WsSession
An established JMAP WebSocket session (RFC 8887).

Enums§

WsFrame
A parsed frame received from the JMAP WebSocket.

Functions§

connect_ws
Open a JMAP WebSocket connection (RFC 8887).