Skip to content
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

Improve WebSocket API #51

Open
nhooyr opened this issue Jun 11, 2020 · 0 comments
Open

Improve WebSocket API #51

nhooyr opened this issue Jun 11, 2020 · 0 comments

Comments

@nhooyr
Copy link

nhooyr commented Jun 11, 2020

The net.Conn interface doesn't match how WebSockets work as it's not a stream oriented protocol.

See golang/go#18152 (comment) and gopherjs/websocket#29

I think it'd be a good idea to recommend my library instead to avoid duplicate work. It supports compiling to Wasm and provides a more semantically appropriate API (while also providing a net.Conn adapter) or the API in this library should be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant