Lines Matching refs:client
71 const client = proxyClient; constant
77 client.setState(ProxyState.NO_PROXY);
81 !client.areVersionsCompatible(
85 client.setState(ProxyState.INVALID_VERSION);
102 client.setState(ProxyState.UNAUTH);
106 client.errorText = this.responseText;
108 client.errorText = String.fromCharCode.apply(
113 client.setState(ProxyState.ERROR, client.errorText);
118 request.open(method, client.WINSCOPE_PROXY_URL + path);
119 const lastKey = client.store.get('adb.proxyKey');
121 client.proxyKey = lastKey;
123 request.setRequestHeader('Winscope-Token', client.proxyKey);
277 const client = proxyClient;
279 client.devices = JSON.parse(request.responseText);
280 const last = client.store.get('adb.lastDevice');
281 if (last && client.devices[last] && client.devices[last].authorised) {
282 await client.selectDevice(last);
284 client.setState(ProxyState.DEVICES);
286 if (client.refresh_worker === undefined) {
287 client.refresh_worker = setInterval(client.getDevices, 1000);
291 client.errorText = request.responseText;
292 client.setState(ProxyState.ERROR, client.errorText);