Realtime
Provider-agnostic realtime hooks for React. WebSocket and SSE abstractions with useChannel, usePresence, and RealtimeProvider. Works with any backend.
npm install @allem-sdk/realtimeRealtimeProvider
Context provider with adapter-based realtime connections
useChannel
Subscribe to a channel and receive messages in real time
usePresence
Track online users and presence state in a channel