question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix blaze websocket server example

See original GitHub issue

If 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:closed
  • Created 8 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
toby5boxcommented, May 23, 2021

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! 🙄

1reaction
rossabakercommented, May 23, 2021

👍 I was just looking at the code and trying it without and it works. Thanks for testing!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found