MCPcopy
hub / github.com/feross/simple-peer / onMessage

Function onMessage

perf/server.js:18–22  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

16 })
17
18 function onMessage (message) {
19 sockets
20 .filter(s => s !== socket)
21 .forEach(socket => socket.send(message))
22 }
23
24 if (sockets.length === 2) {
25 sockets.forEach(socket => socket.send('ready'))

Callers

nothing calls this directly

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…