程序包 xyz.xiezc.ioc.starter.starter.web.netty.websocket.benchmarkserver
This package contains a benchmark application for websockets.
The websocket server will accept websocket upgrade requests and simply echo all incoming frames.
The supplied index page contains a benchmark client that runs in a browser.
Once started, you can start benchmarking by by navigating to http://localhost:8080/ with your browser.
You can also test it with a web socket client. Send web socket traffic to ws://localhost:8080/websocket.
-
类概要 类 说明 WebSocketServer A Benchmark application for websocket which is served at: http://localhost:8080/websocket Open your browser at http://localhost:8080/, then the benchmark page will be loaded and a Web Socket connection will be made automatically.WebSocketServerBenchmarkPage Generates the benchmark HTML page which is served at http://localhost:8080/WebSocketServerHandler Handles handshakes and messagesWebSocketServerInitializer