MCPcopy
hub / github.com/mobile-next/mobile-mcp / isRunning

Method isRunning

src/webdriver-agent.ts:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 public async isRunning(): Promise<boolean> {
31 const url = `http://${this.host}:${this.port}/status`;
32 try {
33 const response = await fetch(url);
34 const json = await response.json();
35 return response.status === 200 && json.value?.ready === true;
36 } catch (error) {
37 // console.error(`Failed to connect to WebDriverAgent: ${error}`);
38 return false;
39 }
40 }
41
42 public async createSession(): Promise<string> {
43 const url = `http://${this.host}:${this.port}/session`;

Callers 3

startWdaMethod · 0.95
wdaMethod · 0.95
wdaMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected