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 a middleware for promoting a connection to WebSocket (fix #205) #206
Conversation
Codecov Report
@@ Coverage Diff @@
## master #206 +/- ##
========================================
Coverage ? 62.3%
========================================
Files ? 40
Lines ? 1369
Branches ? 170
========================================
Hits ? 853
Misses ? 448
Partials ? 68
Continue to review full report at Codecov.
|
faa4b6a
to
005d526
Compare
Any chance of resurrecting this? |
I'll look into it tomorrow. |
005d526
to
6dfaddd
Compare
I just tested the handshake so far, but I'll write a unit test using the client that comes with libsoup-2.4. |
Looking good, been wanting to have a serious play with valum for a while and I now find myself needing a WebSocket server. Having looked at the insanity of doing that in PHP it seemed as good a time as any to finally get valum out. |
Anything I could do to push this over the line? |
6dfaddd
to
ee35ed7
Compare
I finally managed to make it work! I'll push the testcase in a few hours (I have a course now). |
Call 'next' if the client does not want to establish a handshake. Add some documentation to cover the WebSocket middleware.
ee35ed7
to
269646a
Compare
I wrote the test case against the example, but I'll complete it later. Meanwhile, you can test it and give it some feedback. I'll try to fix the CI.. |
Seem to have run into some problems that seem to be around valum expecting Also ninja seems to timeout on the websocket test and my simple soup client reports
|
Okay pulled latest commit, now I get
For the test |
You need to start the example application to run the test until I include it in the unit test itself. I think I'll use a fork for starting the server part. |
I think I've found why it was not working, the I'll release a 0.4 with WebSocket support along with VSGI 1.0 soon after this get merged. I'd like to make it to the next TechEmpower benchmark! |
269646a
to
7360801
Compare
Connecting to examples/app /websocket in JS seems to work for me now |
It was fixed in cea368d Since it's working, I've merged the work into the trunk and I'll include the testcase later. |
No description provided.