rxfy-ws
v2.0.0
Published
Default WebSocket transport adapter for rxfy live updates
Readme
rxfy-ws
The default WebSocket transport for rxfy live updates. Bridges a rxfy-server hub to WebSocket connections on the server, and rxfy stores to a socket on the client.
Install
npm install rxfy-ws
# server peer dep: rxfy-server, wsAPI
createWsServer(hub)— returns{ handleConnection(socket) }; wire it to your WS server's connection handler.createWsClient({ url })— returns a transport withsubscribe/unsubscribe/onMessage/close, auto-reconnecting and re-subscribing.
Works with the Node ws package or the browser WebSocket. See the rxfy-ws docs.
