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.

Using the client to decode Server Sent Events misbehaves on both JVM and JS

See original GitHub issue

Re: https://discord.com/channels/632277896739946517/632286375311573032/1020733581703786608

Repro: https://gist.github.com/Koroeskohr/facf22a21bb955d1df6cac384ac811bc scala-cli test https://gist.github.com/Koroeskohr/facf22a21bb955d1df6cac384ac811bc

As discussed with @armanbilge, we observed on both JVM and JS two different wrong behaviours, the JVM will throw a ClosedChannelException, the JS runtime will hang after the first event, when the source advertises an event every 2 seconds, observable through: $ curl -N --location --compressed --request GET 'https://sse.dev/test' --header 'Accept: text/event-stream'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
armanbilgecommented, Sep 21, 2022

ok thanks I just reproduced! nice work!

1reaction
armanbilgecommented, Sep 21, 2022

Oh, d’oh 😂 let me try that again

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server Sent Events - The Modern JavaScript Tutorial
The Server-Sent Events specification describes a built-in class EventSource ... Bi-directional: both client and server can exchange messages ...
Read more >
HTML5 Server-Sent Events with Micronaut.io and Java
I recently worked on an end-to-end IoT project where Micronaut was chosen as the microservice framework for the cloud-side implementation.
Read more >
Hands-on Scala.js - Haoyi's Programming Blog
Shared code doesn't just mean sharing pre-made libraries between the client and server. You can easily publish your own libraries that can be...
Read more >
A Look at Server Sent Events | simonprickett.dev
Server Sent Events are a standard allowing browser clients to receive a stream of updates from a server over a HTTP connection without...
Read more >
Jersey 2.22 User Guide - GitHub Pages
Using client request and response filters; 5.7. ... jersey-media-sse, Jersey Server Sent Events entity providers support ... asadmin> list-jvm-options .
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