Add option sendPingsAutomatically
This commit is contained in:
+3
-1
@@ -123,7 +123,9 @@ public:
|
||||
|
||||
/* Every successful send resets the timeout */
|
||||
if (webSocketContextData->resetIdleTimeoutOnSend) {
|
||||
Super::timeout(webSocketContextData->idleTimeout);
|
||||
Super::timeout(webSocketContextData->idleTimeoutComponents.first);
|
||||
WebSocketData *webSocketData = (WebSocketData *) Super::getAsyncSocketData();
|
||||
webSocketData->hasTimedOut = false;
|
||||
}
|
||||
|
||||
/* Return success */
|
||||
|
||||
Reference in New Issue
Block a user