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

Function isResponse

local-cli/server/util/messageSocket.js:47–55  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

45}
46
47function isResponse(message) {
48 return (
49 typeof message.id === 'object' &&
50 typeof message.id.requestId !== undefined &&
51 typeof message.id.clientId === 'string' && (
52 message.result !== undefined ||
53 message.error !== undefined
54 ));
55}
56
57function attachToServer(server, path) {
58 const wss = new WebSocketServer({

Callers 1

attachToServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…