-
Notifications
You must be signed in to change notification settings - Fork 337
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
Add/modify API to send and receive raw frames #206
base: master
Are you sure you want to change the base?
Conversation
I wonder if the lack of this is what is preventing http-kit from successfully responding to WebSocket requests from my browsers? I get |
@brunchboy Can you check what response headers is server returning in the browser ? I think server/proxy might be responding with some WebSockets deflate-frame extension specific headers. |
Whoops, I thought I had tagged that state of the project in Git, but I was missing a few files, so it took me a little work to get back to where I could reproduce it. As I thought I recalled, I do not see any deflate-related response headers. It seems to me (from what little I understand of the protocol) like the server is staying in a plain text mode, while the browser is expecting it to have switched to a binary format. Here is a Wireshark capture of the failed socket open attempt, for what it is worth. I am proceeding fine without web sockets, just polling for UI changes every 50 milliseconds. (This is fine because it is a local web server for lighting control software.)
And again, this is the error reported for this transaction:
|
fbd27c5
to
a5fcfbb
Compare
* feature/ws-frame-api: Add/modify API to send and receive raw frames
Feature/update 2.2.0
9c84437
to
c92fdc5
Compare
2c29c84
to
c2a6343
Compare
62a43ce
to
76aba05
Compare
78c0e29
to
6652df8
Compare
17a83b4
to
3c9f051
Compare
e51f650
to
26a5eb6
Compare
API change discussion for implementing Websocket extension permessage-deflate
I am implementing websocket extension permessage-deflate. (Refer: https://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-21)
There are two problems with http-kit async handler API
So problem is primarily divided into two parts sending and receiving. In both cases it is caused by the assumption that a TextFrame will always contain UTF-8 string data.
While API change for sending raw frame is non-breaking change. The API change for receiving data is breaking change.