-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net.Conn is the wrong API for WebSockets #29
Comments
Not sure what can be done about it now other than making a v2. |
If someone wants to use a message-based API, there's always gopherjs/websocket/websocketjs. Having a |
Yes but it is callback based which makes it frustrating to use.
I agree isomorphic code is nice so I modified my WebSocket library to support WASM. Once Go 1.13 is supported by GopherJS, I think it's best to recommend my library instead which provides a nicer API for when you don't need a net.Conn but also provides a net.Conn wrapper, all with the exact same API for targeting WASM or any other "normal" Go target. |
Going to close as it has been a while and I'm not sure if this is relevant anymore. |
golang.org/x/net/websockets has a similar API that is considered problematic.
See golang/go#18152 (comment)
The text was updated successfully, but these errors were encountered: