You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Plugins/Client/WebSocketTransport.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ class WebSocketTransport extends JSONRPC.ClientPluginBase
68
68
* MUST set the .rpc() bSkipWaitReadyOnConnect param (or .rpcX({skipWaitReadyOnConnect})) to true or else the call will hang forever.
69
69
*
70
70
*
71
-
* A WebSocket ping control frame (most efficient way to ping for a WebSocket) is sent at an interval (the smallest of nKeepAliveTimeoutMilliseconds / 2 or 4000 milliseconds) by the server side (if configured to do so using a non-null nKeepAliveTimeoutMilliseconds).
71
+
* A WebSocket ping control frame (most efficient way to ping for a WebSocket) is sent at an interval (if nKeepAliveIntervalMilliseconds is null then the smallest of nKeepAliveTimeoutMilliseconds / 2 or 4000 milliseconds) by the server side (if configured to do so using a non-null nKeepAliveTimeoutMilliseconds).
72
72
* The client checks (if configured to do so using a non-null nKeepAliveTimeoutMilliseconds) if a ping was received since connecting or since the last ping (whichever came last).
73
73
* If the ping (or pong for compatibility with other keep alive systems in other libraries) control frame is not seen by the client for nKeepAliveTimeoutMilliseconds then the client will close its WebSocket.
74
74
* If the pong (or ping for compatibility with other keep alive systems in other libraries) control frame is not seen by the server for nKeepAliveTimeoutMilliseconds then the server will close its WebSocket.
@@ -85,6 +85,7 @@ class WebSocketTransport extends JSONRPC.ClientPluginBase
85
85
bBidirectionalWebSocketMode=false,
86
86
{
87
87
nKeepAliveTimeoutMilliseconds =null,
88
+
nKeepAliveIntervalMilliseconds =null,
88
89
89
90
bAutoReconnect =false,
90
91
@@ -121,6 +122,7 @@ class WebSocketTransport extends JSONRPC.ClientPluginBase
0 commit comments