mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 02:39:26 +02:00
feat: use more pipes
This commit is contained in:
parent
86d518fdab
commit
8b78c9c331
18 changed files with 392 additions and 316 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue