Yaffle/EventSource

Possible connection leak? A new SSE connection is opened on every onerror status=undefined

Open

#144 opened on Feb 3, 2020

View on GitHub
 (10 comments) (1 reaction) (0 assignees)JavaScript (1,873 stars) (320 forks)batch import
help wanted

Description

Hi @Yaffle need your help in figuring this out. I see a pattern where a new connection is opened on every onerror and the status for the on error is status=undefined. The client does not get any data through SSE connection and after few seconds onerror with status=undefined is invoked again and a new connection is made to the backend. All these connections kept open till the browser/session is closed and all the connections are closed together. Could you please help in figuring this out and understand why this is happening and help in fixing it?

Contributor guide

Possible connection leak? A new SSE connection is opened on every onerror status=undefined · Yaffle/EventSource#144 | Good First Issue