MCPcopy Create free account
hub / github.com/arctic-cli/interface / onOpen

Function onOpen

packages/arctic/src/server/server.ts:349–351  ·  view source on GitHub ↗
(_event, ws)

Source from the content-addressed store, hash-verified

347 if (!Pty.get(id)) throw new Error("Session not found")
348 return {
349 onOpen(_event, ws) {
350 handler = Pty.connect(id, ws)
351 },
352 onMessage(event) {
353 handler?.onMessage(String(event.data))
354 },

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected