You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of the time writing this issue, gorilla/websocket is now officially archived and will no longer receive any updates. Although we don't try to update dependencies very often, we still want to use a reasonably maintained library.
A few alternatives exist, none of which I actually want to use:
gobwas/ws seems too low-level, and I'm unsure if it's well-maintained either.
nhooyr/websocket depends on klauspost/compress, which I (and a few other people) do not want to use because it's ~50MB to download, which a lot of people struggle with.
I also have used the library myself and find the library pleasant. While gobwas/ws is very low level, gobwas/ws/wsutil is used for high level operations.
gobwas/ws/wsutil makes things very easy because it uses interfaces like io.Writer and io.Reader.
Do note: WriteServerMessage is meant to be used by clients. The naming scheme comes from where the message is supposed to written to.
There are other facets to wsutil that I haven't covered but I don't think that'll be necessary since both gorilla/websocket and gobwas/ws share net.Conn which should cover all your needs.
As of the time writing this issue, gorilla/websocket is now officially archived and will no longer receive any updates. Although we don't try to update dependencies very often, we still want to use a reasonably maintained library.
A few alternatives exist, none of which I actually want to use:
Any other alternatives proposed are welcome; please put them as comments under this issue. For now, we'll stick to using gorilla/websocket.
The text was updated successfully, but these errors were encountered: