ChannelEvent

public enum ChannelEvent : String

This emumeration defines the notification options for a channel, this is an alternative to the ChannelDelegate protocol.

Use this channel event enumeration in conjunction with the channel.on(…) and channel.off(…) methods in order to receive the notifications in a closure in the main thread

  • The on connect event

    Declaration

    Swift

    case Connect = "ms.channel.connect"
  • The on disconnect event

    Declaration

    Swift

    case Disconnect = "ms.channel.disconnect"
  • A client connect event

    Declaration

    Swift

    case ClientConnect = "ms.channel.clientConnect"
  • client disconnect event

    Declaration

    Swift

    case ClientDisconnect = "ms.channel.clientDisconnect"
  • A text message was received

    Declaration

    Swift

    case Message = "ms.channel.message"
  • A binary data message was received

    Declaration

    Swift

    case Data = "ms.channel.data"
  • Connection to channel failed due to authorization issue (for some specific channels)

    Declaration

    Swift

    case Unauthorized = "ms.channel.unauthorized"
  • C0nnection time out

    Declaration

    Swift

    case Timeout = "ms.channel.timeOut"
  • An error happened

    Declaration

    Swift

    case Error = "ms.error"
  • The host app is ready to send or receive messages

    Declaration

    Swift

    case Ready = "ms.channel.ready"
  • The Channel Ping event

    Declaration

    Swift

    case Ping = "ms:channel.ping"