This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
So SSE has limitation of 6 simultaneous connections over HTTP1.1 and which can be overcome by using HTTP2 they say. Now what I'm not able to figure out is, how do I implement this in HTTP2?
In JS we just create EventSource object which subscribes to a endpoint and then we create listeners for different EventTypes server sends. From backbend (using springboot server with HTTP2 enabled, h2c) when I send a push notification, it always comes as HTTP1.1. I can't figure out what I'm doing wrong.
I've tested my server using curl --http2 that gives me HTTP2 protocol response so the backend is capable but not sure how to do that with JS EventSource.
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/javascript/...