Cookbook
Short recipes for the room socket. Full API lives under Rooms.
Short recipes. The Rooms section is the feature map. Use a how-to when you need the long path.
JWT auth
POST /auth/token from your backend.
Realtime provider
Browser-only. close() on unmount.
Connection status
suspended, failed, retryIn.
Message history
history, fromSerial, beforeSerial.
Occupancy
connections vs presenceMembers.
Typing
keystroke, stop, currentlyTyping.
Presence avatars
self, others, last-seen.
Room reactions
Ephemeral room_reaction bursts.
Locks
Exclusive lock on the Room DO.
Transport fallback
Socket down, HTTP still publishes.
KB + RAG agent
Ground @assistant in your docs.
Message templates
Reusable payloads.
Bot streaming
Fluxy message stream.