trim the trailing slash off the host url for the websocket connection