WebSocketOptions
Properties
Link copied to clipboard
Extra HTTP headers to send with the opening handshake.
Link copied to clipboard
Value of the Origin header to send with the opening handshake. Defaults to the http(s) equivalent of the WebSocket URL's origin (e.g. connecting to wss://api.example.com sends Origin: https://api.example.com), so that the connection is treated as same-origin by the server and by SameSite cookie rules.
Link copied to clipboard
Whether to send cookies from the session with the opening handshake and store cookies received in the handshake response. Default is false.