features
@particular/realtime
Real-time with SSE/Pusher/Ably providers
Installation
bun add @particular/realtime
Key Exports
| Export | Type | Description |
|---|---|---|
| createChannel | function | Create a real-time channel |
| useChannel | hook | Subscribe to a channel |
| RealtimeProvider | component | Provider component |
Usage Examples
Subscribe to events
import { useChannel } from "@particular/realtime";
const { data } = useChannel("notifications");