websocket_client_prepare_handshake_with_extensions


Description:


[ Version ( since = "2.68" ) ]
public void websocket_client_prepare_handshake_with_extensions (Message msg, string? origin, string[]? protocols, GenericArray<TypeClass>? supported_extensions)

Adds the necessary headers to msg to request a WebSocket handshake including supported WebSocket extensions.

The message body and non-WebSocket-related headers are not modified.

This is a low-level function; if you use websocket_connect_async to create a WebSocket connection, it will call this for you.

Parameters:

msg

a Message

origin

the "Origin" header to set

protocols

list of protocols to offer

supported_extensions

list of supported extension types


Namespace: Soup
Package: libsoup-2.4



2022 vala-language.org