Generate the websocket URL