MCPcopy Create free account
hub / github.com/Noumena-Network/code / assertOpen

Method assertOpen

src/remote/appServer/client.ts:558–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

556 }
557
558 private assertOpen(): void {
559 if (this.closed || !this.ws || this.ws.readyState !== WS.OPEN) {
560 throw new Error('remote app-server websocket is not open')
561 }
562 }
563
564 private close(message: string): void {
565 if (this.closed) {

Callers 5

requestMethod · 0.95
notifyMethod · 0.95
resolveServerRequestMethod · 0.95
rejectServerRequestMethod · 0.95
sendMessageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected