FunctionSoup-3.0 ▶ Soup ▶ websocket_client_prepare_handshake
websocket_client_prepare_handshake( msg: Soup.Message, origin: string | null, protocols: string[] | null, supported_extensions: TypeClass[] | null,): void Parameters
- msg: Soup.Message
- origin: string | null
- protocols: string[] | null
- supported_extensions: TypeClass[] | null
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.