Skip to content

Commit

Permalink
Add types, minor fixes in RemoteAdbDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
nisargjhaveri committed Sep 2, 2024
1 parent 49b93e4 commit 57091d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/client/RemoteAdbDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ export class RemoteAdbDevice extends EventEmitter {

private _connecting: boolean = false;

get serial() {
get serial(): string {
return this.backend.serial;
}

get name() {
get name(): string {
return this.backend.name;
}

get remoteSerial() {
return this.serverHandshake.serial;
get remoteSerial(): string|undefined {
return this.serverHandshake?.serial;
}

get bytesTransferred() {
Expand All @@ -34,11 +34,11 @@ export class RemoteAdbDevice extends EventEmitter {
this.backend = backend;
}

get connected() {
get connected(): boolean {
return this.backend.connected && this.ws?.readyState == WebSocket.OPEN && !this._connecting;
}

get connecting() {
get connecting(): boolean {
return this._connecting;
}

Expand Down

0 comments on commit 57091d0

Please sign in to comment.