public final class WebSocketClient
extends java.lang.Object
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 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() |
限定符和类型 | 方法和说明 |
---|---|
static void |
main(java.lang.String[] args) |