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

File ws.js

host/network/src/main/ws.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/* WebSocket, push-event pattern (streaming, so `bind_event` + `receive()` like `dom`). */
2
3export default ({ sockets, allocSocket, socket }, { pushEvent }) => ({
4 /* `ws_open(url, msg)` -> socket handle. Every event (open/message/close/error) arrives via `receive()` tagged `msg`. */

Callers

nothing calls this directly

Calls 4

allocSocketFunction · 0.85
socketFunction · 0.85
pushEventFunction · 0.50
parseMethod · 0.45

Tested by

no test coverage detected