MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / disconnect

Method disconnect

src/shared/back/SocketClient.ts:95–101  ·  view source on GitHub ↗

Disconnect the socket (and do not reconnect to it).

()

Source from the content-addressed store, hash-verified

93
94 /** Disconnect the socket (and do not reconnect to it). */
95 disconnect() {
96 this.keepOpen = false;
97 if (this.client.socket) {
98 this.client.socket.close();
99 this.client.socket = undefined;
100 }
101 }
102
103 /**
104 * Open a new socket and try to connect again.

Callers 1

mainFunction · 0.80

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected