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

Method socketSend

src/client.ts:168–174  ·  view source on GitHub ↗
(message:string)

Source from the content-addressed store, hash-verified

166 }
167
168 socketSend(message:string) {
169 if(this.socket && this.socket.readyState === 1) {
170 this.socket.send(message);
171 } else {
172 this.socketQueue.push(message);
173 }
174 }
175
176 send(payload:{type: string, [attributes:string]: any}) {
177 let message = JSON.stringify(payload);

Callers 3

sendMethod · 0.95
sendControlMethod · 0.95
onOpenMethod · 0.95

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected