This event is fired by the server if a SUBSCRIBE_CHANNEL event could not be processed. The payload returned is the same payload sent in the SUBSCRIBE_CHANNEL event.

Payload Parameters

NameDescriptionJSON type
channeloriginal payload sent in SUBSCRIBE_CHANNELObject
errorError details object:
  • code: (string) error code
  • message: (string) error message
Object

Authorization

Sender of SUBSCRIBE_CHANNEL.

Example

socketConnection.on('SUBSCRIBE_CHANNEL_FAILED', callback(payload));

Payload

{
  "channel": {
      "type": "topic",
      "_id": "594140a11d108619100a7363"
  },
  "error": {
    "code": "invalid.parameters",
    "message": "channel data was not provided"
  }
}