Убраны неиспользуемые пакеты

This commit is contained in:
RoyceDa
2026-02-12 14:38:18 +02:00
parent 68312de205
commit 3af1e53a19
4 changed files with 3 additions and 181 deletions

View File

@@ -13,9 +13,6 @@ import { PacketDelivery } from "./packets/packet.delivery";
import { PacketRequestUpdate } from "./packets/packet.requestupdate";
import { RECONNECTING_INTERVAL } from "@/app/constants";
import { PacketTyping } from "./packets/packet.typeing";
import { PacketAvatar } from "./packets/packet.avatar";
import { PacketKernelUpdate } from "./packets/packet.kernelupdate";
import { PacketAppUpdate } from "./packets/packet.appupdate";
import { PacketRequestTransport } from "./packets/packet.requesttransport";
import { PacketPushNotification } from "./packets/packet.push.notification";
import { PacketCreateGroup } from "./packets/packet.create.group";
@@ -113,9 +110,9 @@ export default class Protocol extends EventEmitter {
this._supportedPackets.set(0x09, new PacketDeviceNew());
this._supportedPackets.set(0x0A, new PacketRequestUpdate());
this._supportedPackets.set(0x0B, new PacketTyping());
this._supportedPackets.set(0x0C, new PacketAvatar());
this._supportedPackets.set(0x0D, new PacketKernelUpdate());
this._supportedPackets.set(0x0E, new PacketAppUpdate());
//this._supportedPackets.set(0x0C, new PacketAvatar());
//this._supportedPackets.set(0x0D, new PacketKernelUpdate());
//this._supportedPackets.set(0x0E, new PacketAppUpdate());
this._supportedPackets.set(0x0F, new PacketRequestTransport());
this._supportedPackets.set(0x10, new PacketPushNotification());
this._supportedPackets.set(0x11, new PacketCreateGroup());
@@ -144,7 +141,6 @@ export default class Protocol extends EventEmitter {
this.isManuallyClosed = false;
this.socket.addEventListener('open', () => {
//this.reconnectTryings = 0;
this.emit('connect');
this._flushPacketQueue(); // Отправляем все пакеты из очереди
});