MCPcopy Create free account
hub / github.com/AutoCodeStack/ios-device-farm / sendCommand

Method sendCommand

src/modules/idf.ts:39–49  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

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);

Callers 1

handleCommandFunction · 0.80

Calls 2

buildCommandFunction · 0.90
performCommandMethod · 0.80

Tested by

no test coverage detected