Hacks to get the websocket connecting to the subdirectory from Cordova.