类 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.WebSocketServer 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.

    • 构造器详细资料

      • WebSocketClient

        public WebSocketClient()