This PR will add a new event ConnectionFailed to FConnection, which FHubConnection will listen for and emit a ConnectionErrorEvent so that the surrounding application can react to a connection failure.
The code was simple and therefore quick to review, as soon as I got the notification. And I don't think it will introduce any bugs, so I didn't need to test it immediately.
This PR will add a new event ConnectionFailed to FConnection, which FHubConnection will listen for and emit a ConnectionErrorEvent so that the surrounding application can react to a connection failure.
Fixes crash described in #15.