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
Hey, which version of the library are you using currently?
And it seems like the error you are seeing is from this library acting as a client? Could you give a bit more detail about how you are using this library as well as what's going on in the other end (Chrome/Android)? If you can, a minimum reproduction would be helpful.
Somehow, nhooyr.io/websocket was updated to v1.8.17 in one of our projects go.mod, which broke the application on Chrome/Android.
We had to revert to v1.8.10:
$ go mod tidy
go: finding module for package github.com/coder/websocket/internal/errd
go: finding module for package github.com/coder/websocket
go: finding module for package github.com/coder/websocket/internal/test/xrand
go: finding module for package github.com/coder/websocket/internal/test/assert
go: finding module for package github.com/coder/websocket/internal/test/wstest
go: finding module for package github.com/coder/websocket/internal/wsjs
go: finding module for package github.com/coder/websocket/internal/util
go: finding module for package github.com/coder/websocket/internal/bpool
go: finding module for package github.com/coder/websocket/internal/xsync
go: finding module for package github.com/coder/websocket/wsjson
go: found github.com/coder/websocket/internal/bpool in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket/internal/errd in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket/internal/util in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket/internal/wsjs in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket/internal/test/assert in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket/internal/test/wstest in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket/internal/test/xrand in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket/internal/xsync in github.com/coder/websocket v1.8.13
go: found github.com/coder/websocket/wsjson in github.com/coder/websocket v1.8.13
go: github.com/coder/websocket@v1.8.13 used for two different module paths (github.com/coder/websocket and nhooyr.io/websocket)
Activity
mafredri commentedon Apr 5, 2025
Hey, which version of the library are you using currently?
And it seems like the error you are seeing is from this library acting as a client? Could you give a bit more detail about how you are using this library as well as what's going on in the other end (Chrome/Android)? If you can, a minimum reproduction would be helpful.
Adphi commentedon Apr 5, 2025
We don't use it directly. It is used by github.com/improbable-eng/grpc-web.
Somehow,
nhooyr.io/websocket
was updated tov1.8.17
in one of our projectsgo.mod
, which broke the application on Chrome/Android.We had to revert to
v1.8.10
:Adphi commentedon Apr 5, 2025
The server code is in websocket_wrapper.go.
The client code is the nice-grpc-web websocket transport.
mafredri commentedon Apr 5, 2025
I would recommend switching over to this repo and giving the latest release a try, which has a potential fix for the issue you’re experiencing.
https://github.com/coder/websocket/releases/tag/v1.8.13
Adphi commentedon Apr 5, 2025
It does not seems to be possible: