Session states
Overview
If you want to learn more about the local session status you can watch for MessageChannel event payloads with type == "session-state"
.
This can be particularly useful when developing your own user interface and seeking information about user-related events, such as a user's AFK status or when a user reaches the maximum session length. Each will contain a value
field with one of the following values:
afk-warning
- A user has been idle, and if no activity is detected within the next 2 minutes, they will be removedafk-reset
- Activity detected from an idle user; the AFK timer has been resetafk-closing
- The user has been idle for an extended period and will be removed from the space immediatelymax-session-reached
- The user has reached the maximum session duration and will be removed from the space immediately
Example payload
Last updated