WebSocketBinaryType

public enum WebSocketBinaryType : CustomStringConvertible

The WebSocketBinaryType enum is used by the binaryType property and indicates the type of binary data being transmitted by the WebSocket connection.

  • The WebSocket should transmit [UInt8] objects.

    Declaration

    Swift

    case UInt8Array
  • The WebSocket should transmit NSData objects.

    Declaration

    Swift

    case NSData
  • The WebSocket should transmit UnsafeBufferPointer objects. This buffer is only valid during the scope of the message event. Use at your own risk.

    Declaration

    Swift

    case UInt8UnsafeBufferPointer