SignalR common code