Function

nw_ws_options_add_additional_header(_:_:_:)

Adds additional HTTP header fields to be sent by the client during the WebSocket handshake.

Declaration

func nw_ws_options_add_additional_header(_ options: nw_protocol_options_t, _ name: UnsafePointer<Int8>, _ value: UnsafePointer<Int8>)

See Also

Configuring Client Handshakes

func nw_ws_options_add_subprotocol(nw_protocol_options_t, UnsafePointer<Int8>)

Adds to the list of supported application protocols that will be presented to a WebSocket server during connection establishment.

func nw_ws_options_set_skip_handshake(nw_protocol_options_t, Bool)

Specifies whether the WebSocket protocol skips its handshake and begins framing data once the underlying connection is established.