tpeczek/Lib.AspNetCore.ServerSentEvents

Add ReconnectInterval option in ServerSentEventsServiceOptions

Closed this issue · 3 comments

In our project, we want our ServerSentEventsService to be started with a different reconnect interval than the default.

Currently, this seems a bit difficult to do, because ChangeReconnectIntervalAsync() is async, so it can't be awaited in the ServerSentEventsService constructor.

Could you please add a ReconnectInterval field to ServerSentEventsServiceOptions, so that the reconnect interval could easily be set when configuring the service?

Thanks :)

This change makes perfect sens and won't be problematic, so I will take care of adding this.

Yay! Thank you :)

You're welcome