MCPcopy
hub / github.com/socketio/socket.io / #resetPingTimeout

Method #resetPingTimeout

examples/basic-websocket-client/src/index.js:182–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 }
181
182 #resetPingTimeout() {
183 clearTimeout(this.#pingTimeoutTimer);
184 this.#pingTimeoutTimer = setTimeout(() => {
185 this.#onClose("ping timeout");
186 }, this.#pingTimeoutDelay);
187 }
188
189 #send(data) {
190 if (this.#ws.readyState === WebSocket.OPEN) {

Callers 2

#onMessageMethod · 0.95
#onOpenMethod · 0.95

Calls 1

#onCloseMethod · 0.95

Tested by

no test coverage detected