PacketType

public enum PacketType: Int

The type of packets.

  • Connect: 0

    Declaration

    Swift

    case connect
  • Disconnect: 1

    Declaration

    Swift

    case disconnect
  • Event: 2

    Declaration

    Swift

    case event
  • ack

    Ack: 3

    Declaration

    Swift

    case ack
  • Error: 4

    Declaration

    Swift

    case error
  • Binary Event: 5

    Declaration

    Swift

    case binaryEvent
  • Binary Ack: 6

    Declaration

    Swift

    case binaryAck
  • Whether or not this type is binary

    Declaration

    Swift

    public var isBinary: Bool