Sign channel auth
sign_channel_authGenerate auth signatures clients need to subscribe to private or presence channels, matching your auth endpoint for testing and debugging mismatches. Presence channels need channel_data with user_id.
Instructions
Compute the auth signature a client needs to subscribe to a private- or presence- channel, exactly as your auth endpoint would return it. Useful for testing an auth flow or debugging a signature mismatch. Presence channels need channel_data with a user_id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"socket_id": "<socket_id>",
"channel": "<channel>"
},
"name": "sign_channel_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | A "private-" or "presence-" channel. | |
| socket_id | Yes | Socket id of a connected client, from realtime:connection_established (e.g. "node-eu-1.42"). | |
| channel_data | No | Presence member data, e.g. {"user_id":"42","user_info":{"name":"Ada"}}. Required for presence channels. |