Use current browser address instead of hardcoded localhost for websocket connection