Skip to content

Conversation

@Lokomojo
Copy link

One fix, two new features:

  • Re-set the URI when reconnecting to avoid a perpetual unresolved address condition

In cases where the initial connection failed due to a DNS lookup error, the component is no longer able to reconnect even after normal conditions have been restored.

My change re-sets the connection address to cause a new DNS lookup to be performed.

  •  Add OnClosed event to notify if the eventsource gets dropped temporarily
    

I needed my program to be aware if the connection was down at any point, so I plumbed in the OnClosed event to provide notifications of this, along with a "WillReconnect" indicator.

  • SSL Support

Thanks to Dan Noguerol for doing all of the legwork. I simply fixed one or two things so that it would work well in my environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants