Nigeria No1. Music site And Complete Entertainment portal for Music Promotion WhatsApp:- +2349077287056
Sunday, 7 September 2025
Show HN: GoSocket – A Simple WebSocket Framework for Go https://bit.ly/42lq9zc
Show HN: GoSocket – A Simple WebSocket Framework for Go Hi HN, I built GoSocket, a small library that helps you set up WebSocket servers in Go with almost no boilerplate. It lets you start a server in a few lines of code, handle connections, broadcast to rooms or clients, and add middleware. JSON is supported now, Protobuf and MessagePack are planned. Example: ws := gosocket.NewServer() ws.WithPort(8080). WithPath("/ws"). OnMessage(func(c gosocket.Client, m gosocket.Message, ctx *gosocket.HandlerContext) error { c.Send(m.RawData) // echo return nil }) log.Fatal(ws.Start()) Repo: https://bit.ly/3VADyj9 It’s still pre-1.0, so I’d love feedback, testing, and contributions. https://bit.ly/3VADyj9 September 8, 2025 at 02:00AM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment