RobertDresler / SwiftSSEStream

MIT License
6 stars 0 forks source link

Add support for re-connection #1

Open dipaktilekar opened 1 year ago

dipaktilekar commented 1 year ago

Should there be the in-built support for reconnecting to SSE ?

RobertDresler commented 5 months ago

@dipaktilekar hello, sorry for late answer. What do you mean specifically?

dipaktilekar commented 1 month ago

I mean to say with SSE, when server is not doing 'keepalive' call, the connection could be stale. So in that case should there be retry to connect to SSE ?

RobertDresler commented 2 weeks ago

@dipaktilekar could be. Feel free to open PR.

RobertDresler commented 2 weeks ago

@dipaktilekar I would expect some flag to control whether reconnect is allowed or not. Is this something you have been looking for?