MCPcopy Index your code
hub / github.com/upstash/jstack / close

Method close

packages/jstack-shared/src/socket.ts:270–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268 }
269
270 close() {
271 this.cleanup()
272
273 if (this.ws.readyState === WebSocket.OPEN) {
274 this.ws.close(1000, "Client closed connection")
275 }
276
277 this.isConnected = false
278 }
279
280 connect() {
281 const ws = new WebSocket(this.url)

Callers

nothing calls this directly

Calls 2

cleanupMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected