类 WebSocketClient
- java.lang.Object
-
- xyz.xiezc.ioc.starter.starter.web.netty.websocket.client.WebSocketClient
-
public final class WebSocketClient extends Object
This is an example of a WebSocket client.In order to run this example you need a compatible WebSocket server. Therefore you can either start the WebSocket server from the examples by running
io.netty.example.http.websocketx.server.WebSocketServeror 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.