Added code from signalR chat demo