MCPcopy Create free account
hub / github.com/CommE2E/comm / resetPing

Method resetPing

lib/socket/socket.react.js:755–764  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

753 }
754
755 resetPing() {
756 this.stopPing();
757 const socket = this.socket;
758 this.messageLastReceived = Date.now();
759 this.pingTimeoutID = setTimeout(() => {
760 if (this.socket === socket) {
761 void this.sendPing();
762 }
763 }, pingFrequency);
764 }
765
766 async sendPing() {
767 if (this.props.connection.status !== 'connected') {

Callers 2

markSocketInitializedMethod · 0.95
SocketClass · 0.95

Calls 2

stopPingMethod · 0.95
sendPingMethod · 0.95

Tested by

no test coverage detected