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

Function getClientWs

local-cli/server/util/messageSocket.js:65–71  ·  view source on GitHub ↗
(clientId)

Source from the content-addressed store, hash-verified

63 let nextClientId = 0;
64
65 function getClientWs(clientId) {
66 const clientWs = clients.get(clientId);
67 if (clientWs === undefined) {
68 throw `could not find id "${clientId}" while forwarding request`;
69 }
70 return clientWs;
71 }
72
73 function handleSendBroadcast(broadcasterId, message) {
74 const forwarded = {

Callers 2

forwardRequestFunction · 0.85
forwardResponseFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…