@zero-server/realtime
v1.0.2
Published
WebSocket connection + room manager and SSE stream controller.
Maintainers
Readme
@zero-server/realtime
WebSocket connection + room manager and SSE stream controller.
Real-time primitives: RFC 6455 WebSocket connection wrapper, a WebSocketPool for rooms / broadcasting / sub-protocols, and the SSEStream controller used by res.sse().
Install
npm install @zero-server/realtimeOr install the full SDK to get everything at once:
npm install @zero-server/sdkUsage
const { WebSocketConnection, handleUpgrade, WebSocketPool } = require('@zero-server/realtime')Public surface
This package provides 4 public exports as a standalone runtime bundle. See the scope page for the full list.
Documentation
License
MIT © Anthony Wiedman
