GWS is a high-performance WebSocket library for Go that provides both server and client capabilities. It is designed for high-concurrency use cases such as API gateways, chat systems, reverse proxies, online games, real-time streaming, and push or subscription services. The library exposes a minimal event-driven API, allowing developers to build WebSocket applications with relatively little code. It supports standard TCP usage as well as WebSocket operation over KCP and Unix domain sockets. GWS also includes practical features for connection handling, compression, heartbeat management, UTF-8 validation, and scalable read or write loops. It is a strong fit for Go developers who need a lightweight but feature-complete WebSocket foundation for real-time applications.
Features
- WebSocket server and client support
- Event-driven Go API
- High-concurrency connection handling
- TCP, KCP, and Unix socket transport support
- Compression and heartbeat options
- Real-time gateway and chat use cases