请参阅: 说明
类 | 说明 |
---|---|
WebSocketFrameHandler |
Echoes uppercase content of text frames.
|
WebSocketIndexPageHandler |
Outputs index page content.
|
WebSocketServer |
An HTTP server which serves Web Socket requests at:
http://localhost:8080/websocket
Open your browser at http://localhost:8080/, then the demo page will be loaded
and a Web Socket connection will be made automatically.
|
WebSocketServerIndexPage |
Generates the demo HTML page which is served at http://localhost:8080/
|
WebSocketServerInitializer |
This package contains an example web socket web server.
The web server only handles text, ping and closing frames. For text frames, it echoes the received text in upper case.
Once started, you can test the web server against your browser by navigating to http://localhost:8080/
You can also test it with a web socket client. Send web socket traffic to ws://localhost:8080/websocket.