chore: update changelogs

This commit is contained in:
Simon Chan 2023-02-09 11:56:26 +08:00
parent dc0dcd03db
commit 9dc9684566
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
6 changed files with 47 additions and 30 deletions

View file

@ -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,