TypeScript API Documentation for LIBSOUP
API Version: 3.0
Library Version: 3.6.6
Generated with TypeDoc via ts-for-gir v4.0.4
Adds the necessary headers to msg to request a WebSocket handshake including supported WebSocket extensions.
msg
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.
a Soup.Message
the "Origin" header to set
list of protocols to offer
list of supported extension types
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.