fixed compatibility issue with mobile devices and websocket connectiont timeout