JavaScript: endpointURL

Returns the URL of the websocket.