Structures

The following structures are available globally.

  • Errors that can be thrown by NIOWebSocket during protocol upgrade.

    See more

    Declaration

    Swift

    public struct NIOWebSocketUpgradeError : Error, Equatable
  • 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
    extension WebSocketMaskingKey: ExpressibleByArrayLiteral
    extension WebSocketMaskingKey: Equatable
    extension WebSocketMaskingKey: Collection
  • A structured representation of a single WebSocket frame.

    See more

    Declaration

    Swift

    public struct WebSocketFrame
    extension WebSocketFrame: Equatable
  • An operation code for a websocket frame.

    See more

    Declaration

    Swift

    public struct WebSocketOpcode
    extension WebSocketOpcode: Equatable
    extension WebSocketOpcode: Hashable
    extension WebSocketOpcode: CaseIterable
    extension WebSocketOpcode: CustomStringConvertible