refactor: further decoupling of Packet and Core parts

This commit is contained in:
pk5ls20
2024-10-14 17:51:21 +08:00
parent 1fbc339a42
commit 397c2cf5f0
9 changed files with 68 additions and 42 deletions

View File

@@ -0,0 +1,15 @@
import {PacketClient} from "@/core/packet/client";
import {PacketHighwayClient} from "@/core/packet/highway/highwayClient";
import {LogWrapper} from "@/common/log";
export class PacketSession {
readonly logger: LogWrapper;
readonly client: PacketClient;
private highwayClient: PacketHighwayClient
constructor(logger: LogWrapper, client: PacketClient) {
this.logger = logger;
this.client = client;
this.highwayClient = new PacketHighwayClient(this.logger, this.client);
}
}