-
Notifications
You must be signed in to change notification settings - Fork 558
Description
It should be possible to support web assembly as a target for this library. The only way to support wasm target is to use a websocket library that support it as a target.
The current websocket library github.com/gorilla/websocket does not support and won't support wasm soon (gorilla/websocket#432). gorilla/websocket is also looking for a maintainer (gorilla/websocket#370) even if still does see some development activity (https://github.com/gorilla/websocket/graphs/code-frequency).
github.com/nhooyr/websocket does have support for wasm and is actively maintained. The library is also simpler and follow go net API more closely. It will actually simplify this library code switching to this other websocket library. The work for just a change can be seen here: 583