Tuesday, May 13, 2025
HomeGolangWebSocket in 2025 - Technical Dialogue

WebSocket in 2025 – Technical Dialogue


Hello guys,

is that this nonetheless the go-to lib for websockets?

GitHub – gorilla/websocket: Bundle gorilla/websocket is a quick, well-tested and broadly used WebSocket implementation for Go.

Are there options out?

It’s nonetheless not within the std lib, appropriate?

It’s the first time I would like them. :sweat_smile:

Thanks & KR
Karl

Yow will discover a bunch of go packages hyperlinks in GitHub – avelino/awesome-go: A curated listing of superior Go frameworks, libraries and software program.
Additionally get primary data from The WebSocket API (WebSockets) – Internet APIs | MDN
HTH

The docs from x/internet/websocket nonetheless counsel gorilla or https://github.com/coder/websocket. I’ve used gorilla semi-recently and it was simple to make use of and purpose about and I’d in all probability use it once more. Try this repo for a bit of demo I constructed utilizing gorilla and client-side code that interfaces with it.

OK – however all that having been mentioned, this mission appears to be like attention-grabbing:

Abstractions constructed on high of websockets. It has a JS lib to go along with it, and Grafana is utilizing it. The docs look good and the examples are in depth. Solely draw back is: no v1 but so no compatibility assure (however I can’t think about they’re breaking issues too usually if Grafana is constructed on it!).

Listed here are some discussions about this subject with even extra choices:

https://www.reddit.com/r/golang/feedback/zu80o0/gorillawebsocket_or_melody/

https://www.reddit.com/r/golang/feedback/1cq61io/which_librarys_websocket_to_use/

In abstract: I don’t suppose there’s a definitive reply right here, sadly. Choose one thing with a license that works for you and docs / examples that attraction to you.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments