{"repo":"Atheer-Ganayem/SnapWS","free":true,"listed":false,"github":"https://github.com/Atheer-Ganayem/SnapWS","clone":"git clone https://github.com/Atheer-Ganayem/SnapWS.git","description":"Minimal WebSocket library for Go.","language":"Go","stars":71,"topics":["chat","chat-application","go","go-websocket","golang","golang-websocket-example","library","networking","pubsub","real-time"],"license":"MIT","category":"chat-messaging","readme_excerpt":"SnapWS Production-ready WebSockets, minus the boilerplate. SnapWS is a zero-dependency, thread-safe WebSocket library for Go. It abstracts away the complexity of connection management, rooms, and protocol compliance so you can focus purely on your application logic. --- ⚡️ Why SnapWS? Most Go WebSocket implementations force you to manually handle the \"boring stuff\": Ping/Pong, thread-safety locks, broadcasting logic, and connection state management. SnapWS handles it all for you. Zero Dependencies: Written entirely with the Go standard library. No bloat. Developer Experience: Intuitive API for Rooms and Direct Messaging out of the box. Safety First: Concurrent and thread-safe design. Standards Compliant: Passes the Autobahn Testsuite. --- ✨ Features Feature Description :--- :--- Room Management Built-in support for joining, leaving, and broadcasting to rooms. Connection Manager Easily handle 1:1 communication and direct messages between clients. Rate Limiter Protect your server from flood attacks with configurable limits. Message Batching Optional batching to reduce syscall overhead under load. (for more info) Auto-KeepAlive Automatic handling of Ping/Pong and Close frames. Middleware Support Hooks for Connect/Disconnect events to integrate custom logic. Generics Type-safe implementation using Go 1.18+ generics. --- API Reference API Reference Examples Examples - Simple echo - Room based chat - Direct messages (1:1 chat) - File streaming - Message batching 🚀 Getting Started ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Atheer-Ganayem","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Atheer-Ganayem/SnapWS/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}