WebRTC пакет в протоколе

This commit is contained in:
RoyceDa
2026-03-14 15:36:26 +02:00
parent 2707bd2a39
commit 8dc2537cdc

View File

@@ -26,6 +26,7 @@ import { PacketDeviceList } from "./packets/packet.device.list";
import { PacketDeviceResolve } from "./packets/packet.device.resolve";
import { PacketSync } from "./packets/packet.sync";
import { PacketSignalPeer } from "./packets/packet.signal.peer";
import { PacketWebRTC } from "./packets/packet.webrtc";
export default class Protocol extends EventEmitter {
private serverAddress: string;
@@ -127,6 +128,7 @@ export default class Protocol extends EventEmitter {
this._supportedPackets.set(0x18, new PacketDeviceResolve());
this._supportedPackets.set(25, new PacketSync());
this._supportedPackets.set(26, new PacketSignalPeer());
this._supportedPackets.set(27, new PacketWebRTC());
}
private _findWaiters(packetId: number): ((packet: Packet) => void)[] {