MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / socket

Function socket

host/network/src/main/state.js:9–14  ·  view source on GitHub ↗
(h)

Source from the content-addressed store, hash-verified

7
8 const allocSocket = (ws) => { sockets.push(ws); return sockets.length - 1; };
9 const socket = (h) => {
10 if (h < 0 || h >= sockets.length || sockets[h] === null) {
11 throw new Error('invalid socket handle: ' + h);
12 }
13 return sockets[h];
14 };
15
16 const allocSse = (es) => { sseSources.push(es); return sseSources.length - 1; };
17 const sse = (h) => {

Callers 1

ws.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected