MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / send

Function send

local-cli/server/util/webSocketProxy.js:20–31  ·  view source on GitHub ↗
(dest, message)

Source from the content-addressed store, hash-verified

18 var debuggerSocket, clientSocket;
19
20 function send(dest, message) {
21 if (!dest) {
22 return;
23 }
24
25 try {
26 dest.send(message);
27 } catch(e) {
28 console.warn(e);
29 // Sometimes this call throws 'not opened'
30 }
31 }
32
33 wss.on('connection', function(ws) {
34 const {url} = ws.upgradeReq;

Callers 1

attachToServerFunction · 0.70

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…