Skip to main content

interface WebSocketOptions

Options for a WebSocket instance. This feature is non-standard.

Properties #

#protocols: string | string[]
optional

The sub-protocol(s) that the client would like to use, in order of preference.

A Headers object, an object literal, or an array of two-item arrays to set handshake's headers. This feature is non-standard.

Did you find what you needed?

Privacy policy