Reconnects if a ServerSentEvents connection is closed

Code has been updated to reconnect in case connection is closed. I've changed URL to call "reconnect" if a reconnect is being tried and I'll call the "reconnect" method after the error callback too.