GWS
Weekly Pick
高性能Go WebSocket服务器和客户端库,支持TCP/KCP/Unix Domain Socket等多种传输层,具有事件风格API、内置广播支持和零动态内存分配等特性。
• Copy the embed code to showcase this product on your website
• Share on X to spread the word about this amazing tool
https://github.com/lxzan/gws### 简介高性能Go WebSocket Server & Client 实现, 并支持在 TCP / KCP / Unix Domain Socket等不同的传输层上运行WebSocket协议. ### 亮点- 事件风格API- 内置广播支持- 支持并发写入- 读写过程零动态内存分配- 通过代理拨号(客户端)- 通过所有Autobahn测试用例### 基准测试> GOMAXPROCS=4, Connection=1000, CompressEnabled=false> Gorilla 和 Nhooyr 未使用Stream API