Skip to main content
Declare the channel pattern once (CLI), then connect from the app:
Subscribing to a channel no declared pattern covers fails with REALTIME_UNAUTHORIZED. Declare the pattern first - that alone unlocks it.

Presence

  • res.presence.members on subscribe - who is here now
  • presence:join / presence:leave events as people come and go
  • backend.realtime.getPresenceState(channel) any time

Rules

  1. connect() before anything else.
  2. publish() requires a prior subscribe() to the same channel.
  3. Leave with unsubscribe(channel).