-
Notifications
You must be signed in to change notification settings - Fork 302
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
wasm not working for unknown reason #421
Comments
@fbaube Not related to HTTP/2. The browser automatically adds such headers as necessary. Do you have a proxy between the client and server? Any middleware before you call |
No proxy, no middleware. I am running the server and Safari on the same machine, and the URL is to
I can add that for completeness, I tried methods (documented in stdlib http) to disable HTTP/2, and in both cases I still got the identical error about the missing
|
Is it possible for you to upload your code? |
I'll try to make a minimal demo of the bug. I might find that something else is gumming up the works. |
I withdraw this issue. I had not used my code for months, and it was not updated as needed. In particular, I have updated it to be the proper version, and it is now renamed to My apologies. |
Awesome! |
My execution environment:
When the wasm client tries to connect, the server gets this error from
websocket.Accept(w,req,nil)
:failed to accept WebSocket connection: WebSocket protocol violation: Connection header "keep-alive" does not contain Upgrade
When package websocket is compiled for wasm, the field
websocket.DialOptions.HTTPHeader
is not available, so I cannot add the required header. This appears to be a limitation of the Javascript WebSocket API, or of how the API is used.I presume this is all related to issue 373.
But it is possible that I am on the wrong track and have no idea what I am doing wrong.
I would be grateful for any guidance.
Originally posted by @fbaube in #4 (comment)
The text was updated successfully, but these errors were encountered: