Emit this socket event to join a space and receive socket events related to it. The Avaya Spaces socket server will emit either SUBSCRIBE_CHANNEL_FAILED(if subscribe failed) or CHANNEL_SUBSCRIBED (if subscribe was successful).

Payload Parameters

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

Authorization

None.

Example

socketConnection.emit('SUBSCRIBE_CHANNEL', payload);

Payload

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