MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / pushMessage

Method pushMessage

frontend/app/store/ws.ts:222–234  ·  view source on GitHub ↗
(data: WSCommandType)

Source from the content-addressed store, hash-verified

220 }
221
222 pushMessage(data: WSCommandType) {
223 if (!this.open) {
224 if (data.wscommand === "rpc" && data.message) {
225 const cmd = data.message.command;
226 if (cmd === "routeannounce" || cmd === "routeunannounce") {
227 return;
228 }
229 }
230 this.msgQueue.push(data);
231 return;
232 }
233 this.sendMessage(data);
234 }
235}
236
237let globalWS: WSControl;

Callers 3

recvRpcMessageMethod · 0.80
recvRpcMessageMethod · 0.80
sendWSCommandFunction · 0.80

Calls 2

sendMessageMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected