MCPcopy
hub / github.com/anomalyco/opencode / webSocketClose

Method webSocketClose

packages/function/src/api.ts:41–43  ·  view source on GitHub ↗
(ws, code, _reason, _wasClean)

Source from the content-addressed store, hash-verified

39 async webSocketMessage(_ws, _message) {}
40
41 async webSocketClose(ws, code, _reason, _wasClean) {
42 ws.close(code, "Durable Object is closing WebSocket")
43 }
44
45 async publish(key: string, content: any) {
46 const sessionID = await this.getSessionID()

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected