The client options.
Whether the socket is open.
True once connected.
Optionalpayload: TClose the connection.
Open the connection (idempotent).
A promise that resolves once the socket is open.
Subscribe the connection to a channel on the server.
The channel.
Unsubscribe the connection from a channel on the server.
The channel.
StaticcreateCreate a realtime client.
The client options.
A new client.
The isomorphic realtime client.
The same Broadcaster API the backend uses, aimed at a server:
broadcast/to().emitsend an event up the socket,onsubscribes a local listener to incoming events. Runs in the browser (globalWebSocket) and on Node (lazy optionalws), so the domain code that emits and listens is written once and the transport is resolved by the context.