abertschi / sailfish-wlan-keyboard

Use your computer keyboard as input device on SailfishOS
http://wlankeyboard.abertschi.ch
GNU General Public License v3.0
21 stars 7 forks source link

Add support for USB connection #6

Closed abertschi closed 9 years ago

abertschi commented 9 years ago

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';
    }