Промежуточный этап синхронизации
This commit is contained in:
@@ -24,6 +24,7 @@ import { PacketGroupBan } from "./packets/packet.group.ban";
|
||||
import { PacketDeviceNew } from "./packets/packet.device.new";
|
||||
import { PacketDeviceList } from "./packets/packet.device.list";
|
||||
import { PacketDeviceResolve } from "./packets/packet.device.resolve";
|
||||
import { PacketSync } from "./packets/packet.sync";
|
||||
|
||||
export default class Protocol extends EventEmitter {
|
||||
private serverAddress: string;
|
||||
@@ -123,6 +124,7 @@ export default class Protocol extends EventEmitter {
|
||||
this._supportedPackets.set(0x16, new PacketGroupBan());
|
||||
this._supportedPackets.set(0x17, new PacketDeviceList());
|
||||
this._supportedPackets.set(0x18, new PacketDeviceResolve());
|
||||
this._supportedPackets.set(25, new PacketSync());
|
||||
}
|
||||
|
||||
private _findWaiters(packetId: number): ((packet: Packet) => void)[] {
|
||||
|
||||
Reference in New Issue
Block a user