eclipse-paho / paho.mqtt.golang

Other
2.77k stars 534 forks source link

`github.com/gorilla/websocket` Depreciated - Should we move to an alternative (and, if so, what) #627

Closed zhoub closed 10 months ago

zhoub commented 1 year ago

Hi,

Since https://github.com/gorilla/websocket was archived, I think it's best to switch to https://pkg.go.dev/golang.org/x/net/websocket .

Thanks in advance.

MattBrittan commented 1 year ago

Based upon this issue I believe that golang.org/x/net/websocket is effectively depreciated as well. There is an open PR #583 (issue #585) that moves to nhooyr/websocket but I was reluctant to accept this because it led to a 12% increase (around 800kb) in the size of a test app with no real benefit (webassembly should be able to be supported using ClientOptions.SetCustomOpenConnectionFn).

I'm interested in feedback on this - will change the title of your post to make it clear that this is a broader discussion and see if anyone else has thoughts..

lxzan commented 1 year ago

try https://github.com/lxzan/gws , provide better performance, easier to use API

bmarinov commented 1 year ago

No longer deprecated :) see https://gorilla.github.io/blog/2023-07-17-project-status-update/ o/

MattBrittan commented 10 months ago

Closing this as the Gorilla libraries are now being maintained again.