feat: split packet bundle
This commit is contained in:
parent
ffbb3132f6
commit
6f16de6887
|
@ -70,4 +70,10 @@ export default (latus) => class BundlePacket extends Packet {
|
||||||
return packets;
|
return packets;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static respond({data: packets}, socket) {
|
||||||
|
for (let i = 0; i < packets.length; i++) {
|
||||||
|
socket.emit('packet', packets[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user