made websocket location configurable