calculate websocket url
added socket.io to the repro for better handling