WsOptions interface
Options for the WebSocket connection to the browser.
Signature
export interface WsOptions
Remarks
Only used in the Node.js environment.
Properties
|
Property |
Modifiers |
Type |
Description |
Default |
|---|---|---|---|---|
|
headers |
|
Record<string, string> |
Headers to use for the web socket connection. | |
|
keepAlive |
|
boolean |
Whether to send WebSocket pings and drop the connection when a pong does not come back within the same interval. Detects a connection that died without a close frame, which otherwise leaves calls hanging until |
|
|
keepAliveIntervalMs |
|
number |
Ping period in milliseconds. Only used when WsOptions.keepAlive is set. |
|
|
maxPayload |
|
number |
Maximum size in bytes of a single message received from the browser. Messages exceeding it close the connection. Raise it when a protocol response, such as a large PDF, does not fit. |
|