You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not getting back the handshake headers, but the connection is made, so now trying from javascript. There is a simple example found here: http://www.websocket.org/echo.html. When I put ws://localhost:8080/http4s/ws and try to connect, I see that the connection is still pending in chrome, client never sees that the connection is "connected". Trying the two control endpoints above work as expected.
The text was updated successfully, but these errors were encountered:
Sorry for the slow reply, I didn't get a notification. The websocket support is certainly a work in progress which has take lower priority than stabilizing the http parser and NIO backends. I've been using chrome browsers to test websockets and the , and I hear that firefox isn't working so there is a good chance I've done something very version specific. I'm hoping to have a bit of time this weekend to hit some soar spots in here so I'll add this to the list.
I am running the sample from https://github.com/http4s/http4s/blob/develop/examples/src/main/scala/org/http4s/examples/blaze/BlazeWebSocketExample.scala and trying to upgrade to ws. It seems that the handshake doesn't work as expected, nor can I get a javascript example to talk to the endpoint.
Here is the test (control):
I now try the same curl with the endpoint power by blaze:
Ok, so let me add the version and key (I would expect the server to reply with what version it supports: https://tools.ietf.org/html/rfc6455#section-11.3.5)
Not getting back the handshake headers, but the connection is made, so now trying from javascript. There is a simple example found here: http://www.websocket.org/echo.html. When I put ws://localhost:8080/http4s/ws and try to connect, I see that the connection is still pending in chrome, client never sees that the connection is "connected". Trying the two control endpoints above work as expected.
The text was updated successfully, but these errors were encountered: