INNER CODE UNIT · JavaScript
bandwidthUsed
moddio/taro · engine/components/network/net.io/net.io-client/index.js:199
var bandwidthUsed = (this._receivedBytesTotal + this._sentBytesTotal) / 1024;
if (statsPanels.bandwidth) {
statsPanels.bandwidth._bandwidthPanel.update(bandwidthUsed, bandwidthUsed * 2);
}
}
// Output debug if required
if (this._debug) {
console.log('Incoming data (event, decoded data):', data, packet);
}
if (packet._netioCmd) {
// The packet is a netio command
switch (packet._netioCmd) {
case 'id':
// Store the new id in the socket
this.id = packet.data;