mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-01 08:10:25 +00:00
refactor: further decoupling of Packet and Core parts
This commit is contained in:
15
src/core/packet/session.ts
Normal file
15
src/core/packet/session.ts
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user