Hello guys,
is that this nonetheless the go-to lib for websockets?
Are there options out?
It’s nonetheless not within the std lib, right?
It’s the first time I want them.
Thanks & KR
Karl
You’ll find a bunch of go packages hyperlinks in GitHub – avelino/awesome-go: A curated record of superior Go frameworks, libraries and software program.
Additionally get primary data from The WebSocket API (WebSockets) – Net APIs | MDN
HTH
The docs from x/web/websocket nonetheless recommend 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 demo I constructed utilizing gorilla and client-side code that interfaces with it.
OK – however all that having been mentioned, this undertaking seems fascinating:
Abstractions constructed on prime of websockets. It has a JS lib to go together 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 typically if Grafana is constructed on it!).
Listed below 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. Decide one thing with a license that works for you and docs / examples that attraction to you.