Establishes a connection to the WebSocket server with the given URI.
The WebSocket URI to connect to.