correct websocket connection issues