Function

nw_ws_options_add_subprotocol

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

Declaration

void nw_ws_options_add_subprotocol(nw_protocol_options_t options, const char *subprotocol);

See Also

Configuring Client Handshakes

nw_ws_options_add_additional_header

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

nw_ws_options_set_skip_handshake

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