Using the client to decode Server Sent Events misbehaves on both JVM and JS
See original GitHub issueRe: 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:
- Created a year ago
- Comments:9 (6 by maintainers)
Top 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 >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
ok thanks I just reproduced! nice work!
Oh, d’oh 😂 let me try that again