cleanup punchpkt

This commit is contained in:
DavidVentura
2024-01-31 16:13:20 +01:00
parent c12c432e71
commit 33e7aeaacc
2 changed files with 3 additions and 21 deletions
+2 -10
View File
@@ -1,15 +1,7 @@
import { createSocket, RemoteInfo } from "node:dgram";
import { create_P2pAlive, DevSerial } from "./impl.js";
import { Commands, CommandsByValue } from "./datatypes.js";
import {
handle_P2PAlive,
handle_PunchPkt,
handle_P2PRdy,
handle_Drw,
notImpl,
noop,
makePunchPkt,
} from "./handlers.js";
import { handle_P2PAlive, handle_P2PRdy, handle_Drw, notImpl, noop, makePunchPkt } from "./handlers.js";
import { hexdump } from "./hexdump.js";
import EventEmitter from "node:events";
import { SendVideoResolution, SendStartVideo, SendWifiDetails } from "./impl.js";
@@ -127,7 +119,7 @@ const startVideoStream = (s: Session) => {
};
export const Handlers: Record<keyof typeof Commands, PacketHandler> = {
PunchPkt: handle_PunchPkt,
PunchPkt: notImpl,
P2PAlive: handle_P2PAlive,
P2pRdy: handle_P2PRdy,
DrwAck: noop,