presenceState()
presenceState<T = Record<string, any>>(): RealtimePresenceState<T>
Return the current Presence snapshot. Keys are Presence keys.
const state = channel.presenceState();
// { "user-1": [{ user_id: 1, name: "Ada" }] }
presenceState<T = Record<string, any>>(): RealtimePresenceState<T>
Return the current Presence snapshot. Keys are Presence keys.
const state = channel.presenceState();
// { "user-1": [{ user_id: 1, name: "Ada" }] }