MCPcopy Index your code
hub / github.com/cryptpad/cryptpad / sendCommand

Function sendCommand

server.js:175–182  ·  view source on GitHub ↗
(worker, command, data /*, cb */)

Source from the content-addressed store, hash-verified

173 var txids = {};
174
175 var sendCommand = (worker, command, data /*, cb */) => {
176 worker.send({
177 type: 'EVENT',
178 txid: Util.guid(txids),
179 command: command,
180 data: data,
181 });
182 };
183
184 var broadcast = Env.broadcast = (command, data/*, cb*/) => {
185 for (const worker of Object.values(Cluster.workers)) {

Callers 1

server.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected