FunctionSoup-3.0 ▶ Soup ▶ websocket_client_prepare_handshake
websocket_client_prepare_handshake( msg: Soup.Message, origin?: string, protocols?: string[], supported_extensions?: TypeClass[],): void Parameters
- msg: Soup.Message
Optionalorigin: stringOptionalprotocols: string[]Optionalsupported_extensions: TypeClass[]
Returns void
Adds the necessary headers to
msgto 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 Session.websocket_connect_async to create a WebSocket connection, it will call this for you.