UInt8

struct UInt8 : FixedWidthInteger, UnsignedInteger
  • Create a UInt8 corresponding to a given WebSocketOpcode.

    This places the opcode in the four least-significant bits, in a form suitable for sending on the wire. Will fail if the opcode is not actually a valid websocket opcode

    Declaration

    Swift

    init?(webSocketOpcode opcode: WebSocketOpcode)

    Parameters

    opcode