(message: T)
| 16 | ClientAPI.url = url; |
| 17 | } |
| 18 | public static async sendRawMessage<T>(message: T): Promise<void> { |
| 19 | await fetch(ClientAPI.url, { |
| 20 | method: 'post', |
| 21 | body: JSON.stringify(message), |
| 22 | headers: { |
| 23 | 'Content-Type': 'application/json' |
| 24 | } |
| 25 | }); |
| 26 | } |
| 27 | public static async captureScreenShot(filename: string): Promise<void> { |
| 28 | await ClientAPI.sendRawMessage({ command: 'captureScreenShot', filename }); |
| 29 | } |
no outgoing calls
no test coverage detected