The API is a bit different from what gorilla/websocket offers, and one of the big advantages I see is that it solves a problem with a proper WebSocket closing handshake which is a bit hard to do right with Gorilla WebSocket ( https://github.com/gorilla/websocket/issues/448)
nhooyr also supports WASM which makes it possible to build WASM based clients.
Is there any reason why this ws lib has to be used ?
I would like to change to https://pkg.go.dev/nhooyr.io/websocket ( https://github.com/nhooyr/websocket )
The API is a bit different from what gorilla/websocket offers, and one of the big advantages I see is that it solves a problem with a proper WebSocket closing handshake which is a bit hard to do right with Gorilla WebSocket ( https://github.com/gorilla/websocket/issues/448)
nhooyr also supports WASM which makes it possible to build WASM based clients.