Emit this socket event to leave a space and cease to receive socket events related to it.

Payload Parameters

NameDescriptionJSON typeRequiredDefault Value
channelSpace details.
  • type: (string) 'topic'
  • _id: (string) unique identifier of the space
ObjectYes

Authorization

Subscribed to the channel.

Example

socketConnection.emit('UNSUBSCRIBE_CHANNEL', payload);

Payload

{
    "channel": {
        "type": "topic",
        "_id": "594140a11d108619100a7363"
    }
}