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.

Heya! Thanks for this small and efficient library.

We are using SSE on top of HTTP/2 and it’s not working with https native node lib (couldn’t sent a request). However it could work via http2 node module.

Any ideas if it could be supported in future?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

1reaction
fletcheristcommented, Mar 14, 2019

yea, http2 works only in https, so you need to setup some SSL letsencrypt-like cert. But this eventsource client just didn’t handle it, while native client in browser works just fine with http2.

Okay, sure, pls give me a few hours, so I could actually make it open-source. We use this in production and it flies well)

as for express, they say there are some hacks (e.g using your express as just router, but server implemented in http2 package)

0reactions
fletcheristcommented, Jun 4, 2019

@wubzz u’re welcome:) if you need something extra e.g custom headers support or else, feel free to reply and i’ll add it to lib.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP/2 protocol | Can I use... Support tables for HTML5, CSS3 ...
HTTP/2 is only supported over TLS (HTTPS). See also the precursor of HTTP/2, the SPDY protocol, which has been deprecated and removed from...
Read more >
HTTP/2 - Wikipedia
Most major browsers had added HTTP/2 support by the end of 2015. ... About 97% of web browsers used have the capability. ......
Read more >
HTTP/2 Test - Verify HTTP/2 Support - KeyCDN Tools
This test can check HTTP and HTTPS but most browsers only support HTTP/2 for HTTPS, which means you must migrate to HTTPS if...
Read more >
HTTP/2 Frequently Asked Questions
In browsers, HTTP/2 is supported by the most current releases of Edge, Safari, Firefox and Chrome. Other browsers based upon Blink will also...
Read more >
How to check if a website has HTTP/2 protocol support
You can just check it in: Chrome Dev Tool ( F12 ) → Network → Protocol. It will tell you the protocol used...
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