MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / sendJson

Method sendJson

masfactory-visualizer/src/runtime/wsServer.ts:122–124  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

120 }
121
122 public sendJson(value: unknown): void {
123 this.sendText(JSON.stringify(value));
124 }
125
126 public close(code = 1000, reason = ''): void {
127 if (this.closed) {return;}

Callers 4

subscribeMethod · 0.80
sendHumanResponseMethod · 0.80
unsubscribeMethod · 0.80
releaseSubscriberMethod · 0.80

Calls 1

sendTextMethod · 0.95

Tested by

no test coverage detected