Back to Articles

netty

A Simple WebSocket Demo with Netty

A Simple WebSocket Demo with Netty

There are several ways to build a WebSocket client. You might use Socket.IO in a web page, or create a connection directly with the browser’s native HTML5 WebSocket API. This demo uses the latter.

Since this is only a demo, I won’t go into a detailed code analysis or project walkthrough here. Later, I plan to build something larger on top of it. A big chat room? A high-performance socket communication system? Stay tuned!

Demo repository: WebSocketDemo.