Обмен ключами шифрования DH
This commit is contained in:
@@ -25,6 +25,7 @@ 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";
|
||||
import { PacketSignal } from "./packets/packet.signal";
|
||||
|
||||
export default class Protocol extends EventEmitter {
|
||||
private serverAddress: string;
|
||||
@@ -125,6 +126,7 @@ export default class Protocol extends EventEmitter {
|
||||
this._supportedPackets.set(0x17, new PacketDeviceList());
|
||||
this._supportedPackets.set(0x18, new PacketDeviceResolve());
|
||||
this._supportedPackets.set(25, new PacketSync());
|
||||
this._supportedPackets.set(26, new PacketSignal());
|
||||
}
|
||||
|
||||
private _findWaiters(packetId: number): ((packet: Packet) => void)[] {
|
||||
|
||||
Reference in New Issue
Block a user