new devices system prototype
This commit is contained in:
@@ -24,6 +24,8 @@ import { PacketGroupInviteInfo } from "./packets/packet.group.invite.info";
|
||||
import { PacketGroupJoin } from "./packets/packet.group.join";
|
||||
import { PacketGroupLeave } from "./packets/packet.group.leave";
|
||||
import { PacketGroupBan } from "./packets/packet.group.ban";
|
||||
import { PacketDeviceNew } from "./packets/packet.device.new";
|
||||
import { PacketDeviceList } from "./packets/packet.device.list";
|
||||
|
||||
export default class Protocol extends EventEmitter {
|
||||
private serverAddress: string;
|
||||
@@ -105,7 +107,7 @@ export default class Protocol extends EventEmitter {
|
||||
this._supportedPackets.set(0x06, new PacketMessage());
|
||||
this._supportedPackets.set(0x07, new PacketRead());
|
||||
this._supportedPackets.set(0x08, new PacketDelivery());
|
||||
//TODO: 0x09
|
||||
this._supportedPackets.set(0x09, new PacketDeviceNew());
|
||||
this._supportedPackets.set(0x0A, new PacketRequestUpdate());
|
||||
this._supportedPackets.set(0x0B, new PacketTyping());
|
||||
this._supportedPackets.set(0x0C, new PacketAvatar());
|
||||
@@ -119,6 +121,7 @@ export default class Protocol extends EventEmitter {
|
||||
this._supportedPackets.set(0x14, new PacketGroupJoin());
|
||||
this._supportedPackets.set(0x15, new PacketGroupLeave());
|
||||
this._supportedPackets.set(0x16, new PacketGroupBan());
|
||||
this._supportedPackets.set(0x17, new PacketDeviceList());
|
||||
}
|
||||
|
||||
private _findWaiters(packetId: number): ((packet: Packet) => void)[] {
|
||||
|
||||
Reference in New Issue
Block a user