mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 02:09:18 +02:00
chore: update changelogs
This commit is contained in:
parent
dc0dcd03db
commit
9dc9684566
6 changed files with 47 additions and 30 deletions
|
@ -114,10 +114,17 @@ export class AdbReverseCommand extends AutoDisposable {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param deviceAddress The address adbd on device is listening on. Can be `tcp:0` to let adbd choose an available TCP port by itself.
|
||||
* @param localAddress Native ADB client will open a connection to this address when reverse connection received. In WebADB, it's only used to uniquely identify a reverse tunnel registry, `handler` will be called to handle the connection.
|
||||
* @param deviceAddress
|
||||
* The address to be listened on device by ADB daemon. Or `tcp:0` to choose an available TCP port.
|
||||
* @param localAddress
|
||||
* An identifier for the reverse tunnel.
|
||||
*
|
||||
* When a socket wants to connect to {@link deviceAddress}, native ADB client will forward that connection to {@link localAddress}.
|
||||
* However in this library, the {@link handler} is invoked instead. So this parameter is only used to identify the reverse tunnel.
|
||||
* @param handler A callback to handle incoming connections. It must return `true` if it accepts the connection.
|
||||
* @returns `tcp:{ACTUAL_LISTENING_PORT}`, If `deviceAddress` is `tcp:0`; otherwise, `deviceAddress`.
|
||||
* @throws {AdbReverseNotSupportedError} If ADB reverse tunnel is not supported on this device when connected wirelessly.
|
||||
* @throws {AdbReverseError} If ADB daemon returns an error.
|
||||
*/
|
||||
public async add(
|
||||
deviceAddress: string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue