MCPcopy Create free account
hub / github.com/EsperoTech/yaade / serverWrite

Function serverWrite

client/src/components/websocketPanel/WebsocketHandler.tsx:269–280  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

267 }
268
269 async function serverWrite(message: string) {
270 if (!ws.current) {
271 throw Error('WebSocket not connected');
272 }
273 return await sendMessageToWebsocket(ws.current, currentRequest.id, {
274 type: 'ws-write',
275 data: {
276 wsId: wsId.current,
277 message,
278 },
279 });
280 }
281
282 async function handleWrite(message: string) {
283 try {

Callers 1

handleWriteFunction · 0.85

Calls 1

sendMessageToWebsocketFunction · 0.90

Tested by

no test coverage detected