@radzor/realtime-chat
Real-time chat messaging via WebSocket. Supports rooms, typing indicators, message history, and user presence. Works in both browser and Node.js environments.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| roomId* | string | — | Unique identifier for the chat room to join. |
| userId* | string | — | Unique identifier for the current user. |
| maxMessages | number | 100 | Maximum number of messages to keep in local buffer. |
| serverUrl* | string | — | WebSocket server URL to connect to. |
| authToken | string | — | Authentication token for authorized connections (e.g. from @radzor/auth-oauth session.accessToken). |