# 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

- `Connect`

  The on connect event

  #### Declaration

  Swift

      case Connect = "ms.channel.connect"

- `Disconnect`

  The on disconnect event

  #### Declaration

  Swift

      case Disconnect = "ms.channel.disconnect"

- `ClientConnect`

  A client connect event

  #### Declaration

  Swift

      case ClientConnect = "ms.channel.clientConnect"

- `ClientDisconnect`

  client disconnect event

  #### Declaration

  Swift

      case ClientDisconnect = "ms.channel.clientDisconnect"

- `Message`

  A text message was received

  #### Declaration

  Swift

      case Message = "ms.channel.message"

- `Data`

  A binary data message was received

  #### Declaration

  Swift

      case Data = "ms.channel.data"

- `Unauthorized`

  Connection to channel failed due to authorization issue (for some specific channels)

  #### Declaration

  Swift

      case Unauthorized = "ms.channel.unauthorized"

- `Timeout`

  C0nnection time out

  #### Declaration

  Swift

      case Timeout = "ms.channel.timeOut"

- `Error`

  An error happened

  #### Declaration

  Swift

      case Error = "ms.error"

- `Ready`

  The host app is ready to send or receive messages

  #### Declaration

  Swift

      case Ready = "ms.channel.ready"

- `Ping`

  The Channel Ping event

  #### Declaration

  Swift

      case Ping = "ms:channel.ping"

© 2017 . All rights reserved. (Last updated: 2017-06-08)

Generated by jazzy ♪♫ v0.7.4, a Realm project.