Fix blaze websocket server example
See original GitHub issueIf I run the websocket server example for blaze from the examples-blaze
sub-project
runMain com.example.http4s.blaze.BlazeWebSocketExample
and point the websocket.org echo client at it, it fails during connection with the following error:
[NIO1SocketServerChannelFactory] INFO o.h.blaze.channel.ServerChannelGroup - Connection to /0:0:0:0:0:0:0:1:59297 accepted at Tue Jun 23 13:29:03 PDT 2015.
[info] 13:29:04.286 [pool-1-thread-1] INFO org.http4s.blaze.pipeline.Stage - Unknown connection header: 'Upgrade'. Closing connection upon completion.
For control, I spun up a sample Unfiltered websocket server and did the same thing, and it worked as expected.
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
http4s/http4s - Gitter
hi, I'm running the BlazeWebSocketExample , and I'm attempting to connect to the server with a js client. When I attempt the web...
Read more >Why is starting a Blaze server that supports websockets ...
Here is the sample code to start a Blaze server that supports ... It is quite different than in the case where websocket...
Read more >JavaScript: How to Implement a WebSocket Backend
ApiBlaze is a tool to explore API specifications: Search for a keyword, filter for objects, properties, or endpoints, and immediately see ...
Read more >Live Coding a Chat Server with WebSockets and http4s
Screen recording of Martin Snyder's Philadelphia Scala Meetup session on building a chat application using WebSockets, Scala, http4s, fs2, ...
Read more >JMeter WebSocket Samplers - A Practical Guide
WebSocket Open Connection · Protocol: ws · Server name or IP: echo.websocket.org · Port: 80 · Path: (empty) · Connection timeout (ms): 20000...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think one of the difficulties I had is that I am testing a client impl at the same time. The moral here is to use a known-good client test tool and debug only one side at a time! 🙄
👍 I was just looking at the code and trying it without and it works. Thanks for testing!