Structures

The following structures are available globally.

  • A single 4-byte websocket masking key.

    WebSockets uses a masking key to prevent malicious users from injecting predictable binary sequences into websocket data streams. This structure provides a more convenient method of interacting with a masking key than simply by passing around a four-tuple.

    See more

    Declaration

    Swift

    public struct WebSocketMaskingKey
  • A structured representation of a single WebSocket frame.

    See more

    Declaration

    Swift

    public struct WebSocketFrame