MCPcopy
hub / github.com/socketio/socket.io / scheduleHeartbeat

Function scheduleHeartbeat

packages/socket.io-adapter/lib/cluster-adapter.ts:779–789  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

777 }
778
779 private scheduleHeartbeat() {
780 if (this.heartbeatTimer) {
781 this.heartbeatTimer.refresh();
782 } else {
783 this.heartbeatTimer = setTimeout(() => {
784 this.publish({
785 type: MessageType.HEARTBEAT,
786 });
787 }, this._opts.heartbeatInterval);
788 }
789 }
790
791 override close() {
792 this.publish({

Callers

nothing calls this directly

Calls 1

publishMethod · 0.45

Tested by

no test coverage detected