mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 10:19:17 +02:00
feat(adb): add power related api
This commit is contained in:
parent
1ea248d57e
commit
45d784c8a5
19 changed files with 196 additions and 106 deletions
|
@ -51,7 +51,7 @@ export class AdbReverseCommand extends AutoDisposable {
|
|||
}
|
||||
|
||||
const address = decodeUtf8(e.packet.payload!);
|
||||
// tcp:1234\0
|
||||
// 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