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

fix: Provide protocol header expected by browser #16

Merged
merged 1 commit into from
May 20, 2021

Conversation

shyndman
Copy link
Contributor

@shyndman shyndman commented May 20, 2021

Hasura sends back a header upon connection indicating which line protocol is going to be used for the rest of the socket session. In browsers, if a matching header is included with the connection request, the browser will reject the handshake.

This differs from the behavior in Dart's native websocket, which does not perform this validation.

Fixes #15

Hasura sends back a header indicating which line protocol is going to
be used. In browsers, if a matching header is not sent on the request,
the browser will reject the handshake.

This differs from the behavior in Dart's native websocket, which does
not perform this validation.
@shyndman shyndman merged commit 30c2015 into main May 20, 2021
@shyndman shyndman deleted the web-subscription-fix branch May 20, 2021 19:42
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

Successfully merging this pull request may close these issues.

Latest version does no longer work on Flutter Web
1 participant