Skip to main content

Presence

When you create a new project, there's an option to specify a Webhook URL. This URL will be triggered every time one of your users connects or disconnects from the websocket. Utilizing this information, you can notify other users in the same channels about the presence status of their peers.

When users connect or disconnect, you can expect to receive the following payload via the webhook:

{
"project_id": "{project_id}",
"user": "{user_id}::{session_id}",
"channels": ["{channelA}", "{channelB}"]
}

To create or update a project, visit the admin panel at: (https://admin.ripplesignal.co/projects)[https://admin.ripplesignal.co/projects]