feat: Implement complete transform & Build & Upload FakeForwardMsg

This commit is contained in:
pk5ls20
2024-10-19 22:13:31 +08:00
parent 9c17dc1b8f
commit c9e3bbcd9f
11 changed files with 290 additions and 146 deletions

View File

@@ -34,16 +34,16 @@ export class PacketHighwaySession {
protected packer: PacketPacker;
private cachedPrepareReq: Promise<void> | null = null;
constructor(logger: LogWrapper, client: PacketClient) {
constructor(logger: LogWrapper, client: PacketClient, packer: PacketPacker) {
this.packetClient = client;
this.logger = logger;
this.packer = new PacketPacker(logger);
this.sig = {
uin: this.packetClient.napCatCore.selfInfo.uin,
sigSession: null,
sessionKey: null,
serverAddr: [],
}
this.packer = packer;
this.packetHighwayClient = new PacketHighwayClient(this.sig, this.logger);
}