In your Selfhost and CsharpClient projects in your CookieAuthenticationSample when the client attempts to create a new connection to the hub using Server Sent events if the connection times out and falls back to LongPolling the hubReceived method in the hub's onConnected method is executed on the server but never received by the client.
If the client successfully connects using Server Sent events or Long Polling hubReceived is executed on the client fine.
In your Selfhost and CsharpClient projects in your CookieAuthenticationSample when the client attempts to create a new connection to the hub using Server Sent events if the connection times out and falls back to LongPolling the hubReceived method in the hub's onConnected method is executed on the server but never received by the client.
If the client successfully connects using Server Sent events or Long Polling hubReceived is executed on the client fine.