Overview#
Unsubscribe from your profile's message queue and stop receiving notifications.Leave Channel#
Request Parameters#
| Parameter | Type | Required | Description |
|---|
authorizationToken | string | Yes | Profile authorization token obtained from authentication |
correlationId | string | Yes | Unique identifier for tracking this request |
Request Example#
Response#
{
"correlationId": "unique-correlation-id",
"status": 200,
"data": {
"channelId": "019735db-f8f7-6c08-c893-8f3a6f44a244",
"message": "Successfully left profile channel."
}
}
Use Case#
Use this operation to gracefully unsubscribe from your profile's message queue before closing the WebSocket connection. This ensures proper cleanup on the server side and prevents unnecessary message processing.Switching to a different profile
No longer need real-time notifications
After leaving the channel, no new messages will be received
The WebSocket connection remains open after leaving
You can rejoin the channel using the same connection
Always leave channel before closing connection for proper cleanup