MCPcopy
hub / github.com/witheve/Eve / send

Method send

src/client.ts:176–183  ·  view source on GitHub ↗
(payload:{type: string, [attributes:string]: any})

Source from the content-addressed store, hash-verified

174 }
175
176 send(payload:{type: string, [attributes:string]: any}) {
177 let message = JSON.stringify(payload);
178 if(!this.localEve) {
179 this.socketSend(message);
180 } else {
181 this.worker.postMessage(message);
182 }
183 }
184
185 sendControl(message:string) {
186 if(!this.localControl) {

Callers 2

sendEventMethod · 0.95
_initProgramMethod · 0.95

Calls 1

socketSendMethod · 0.95

Tested by

no test coverage detected