public class WebSocketClient extends Object
In order to run this example you need a compatible WebSocket server. Therefore you can either start the WebSocket server from the examples or connect to an existing WebSocket server such as ws://echo.websocket.org.
The client will attempt to connect to the URI passed to it as the first argument. You don't have to specify any arguments if you want to connect to the example WebSocket server, as this is the default.
public static void connect()
throws InterruptedException,
IOException,
URISyntaxException
Copyright © 2020–2023 The Aio Project. All rights reserved.