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

Method ensureConnection

src/shared/back/SocketClient.ts:147–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 }
146
147 private ensureConnection() {
148 if (this.keepOpen) {
149 if (this.url && (!this.client.socket || this.client.socket.readyState === this.socketCon.CLOSED)) {
150 console.log('Closed, try again');
151 this.reconnect();
152 }
153 }
154 }
155
156 // API
157

Callers 1

setSocketMethod · 0.95

Calls 1

reconnectMethod · 0.95

Tested by

no test coverage detected