Add support for an USB connection so that the http/websocket servers are available over USB.
Although the html UI is available over USB, the websocket endpoint still points to the IP address of the WLAN connection. This results to the fact that the connection will not work if the phone is not connected to WLAN.
//http://192.168.2.15:7778/
<script type="text/javascript">
var wsEndpoint = 'ws://192.168.1.91:7777';
var debugCheck = '__WS_' + 'ENDPOINT__';
if (wsEndpoint == debugCheck) {
wsEndpoint = 'ws://localhost:7777';
}
Although the html UI is available over USB, the websocket endpoint still points to the IP address of the WLAN connection. This results to the fact that the connection will not work if the phone is not connected to WLAN.