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

Function close

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

Source from the content-addressed store, hash-verified

789 }
790
791 override close() {
792 this.publish({
793 type: MessageType.ADAPTER_CLOSE,
794 });
795 clearTimeout(this.heartbeatTimer);
796 if (this.cleanupTimer) {
797 clearInterval(this.cleanupTimer);
798 }
799 }
800
801 override onMessage(message: ClusterMessage, offset?: string) {
802 if (message.uid === this.uid) {

Callers

nothing calls this directly

Calls 1

publishMethod · 0.45

Tested by

no test coverage detected