v1.1.1: fix(#10) ping syntax for websockets
This commit is contained in:
@@ -331,7 +331,7 @@ export class WebsocketClient extends EventEmitter {
|
||||
this.clearPongTimer(wsKey);
|
||||
|
||||
this.logger.silly('Sending ping', { ...LOGGER_CATEGORY, wsKey });
|
||||
this.tryWsSend(wsKey, JSON.stringify({ op: 'ping' }));
|
||||
this.tryWsSend(wsKey, 'ping');
|
||||
|
||||
this.wsStore.get(wsKey, true).activePongTimer = setTimeout(() => {
|
||||
this.logger.info('Pong timeout - closing socket to reconnect', {
|
||||
|
||||
Reference in New Issue
Block a user