feat: use more pipes

This commit is contained in:
Simon Chan 2022-02-16 18:09:20 +08:00
parent 86d518fdab
commit 8b78c9c331
18 changed files with 392 additions and 316 deletions

View file

@ -53,7 +53,7 @@ export class AdbReverseCommand extends AutoDisposable {
}
const address = decodeUtf8(e.packet.payload!);
// tcp:12345\0
// Address format: `tcp:12345\0`
const port = Number.parseInt(address.substring(4));
if (this.localPortToHandler.has(port)) {
this.localPortToHandler.get(port)!.onSocket(e.packet, e.socket);