MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / connect

Method connect

projects/runtime-client/src/client.ts:113–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 async connect(): Promise<void> {
114 if (this.socket?.readyState === WebSocket.OPEN) return
115 if (this.connecting) return this.connecting
116
117 this.stopped = false
118 this.connecting = this.openLoop()
119 try {
120 await this.connecting
121 } finally {
122 this.connecting = null
123 }
124 }
125
126 private connectQuietly(): void {
127 void this.connect().catch(() => undefined)

Callers 2

requestMethod · 0.95
connectQuietlyMethod · 0.95

Calls 1

openLoopMethod · 0.95

Tested by

no test coverage detected