MCPcopy Index your code
hub / github.com/PokemonGoF/PokemonGo-Bot / deliver

Function deliver

map-chat/javascript/browserMqtt.js:127–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 var queue = this.queue;
126
127 function deliver () {
128 var entry = queue.shift(),
129 packet = null;
130
131 if (!entry) {
132 return;
133 }
134
135 packet = entry.packet;
136
137 that._sendPacket(
138 packet,
139 function (err) {
140 if (entry.cb) {
141 entry.cb(err);
142 }
143 deliver();
144 }
145 );
146 }
147
148 deliver();
149 });

Callers 1

MqttClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected