MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / storeAndSend

Function storeAndSend

map-chat/javascript/browserMqtt.js:47–54  ·  view source on GitHub ↗
(client, packet, cb)

Source from the content-addressed store, hash-verified

45}
46
47function storeAndSend (client, packet, cb) {
48 client.outgoingStore.put(packet, function storedPacket (err) {
49 if (err) {
50 return cb && cb(err);
51 }
52 sendPacket(client, packet, cb);
53 });
54}
55
56function nop () {}
57

Callers 1

browserMqtt.jsFile · 0.85

Calls 1

sendPacketFunction · 0.85

Tested by

no test coverage detected