(data: any)
| 37 | } |
| 38 | |
| 39 | async sendCommand(data: any) { |
| 40 | logger.info(`send command ${JSON.stringify(data)}`); |
| 41 | try { |
| 42 | if (this.wdaControlClient) { |
| 43 | const cmd = buildCommand(data); |
| 44 | await this.wdaControlClient.performCommand(cmd); |
| 45 | } |
| 46 | } catch (error) { |
| 47 | logger.error(`error in send command`, error); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | async start() { |
| 52 | const [controlPort, streamPort] = await findFreePorts(2); |
no test coverage detected