Step 1: Install SignalR from nuget to application.
Tools>Library Package Manager>Package Manager Console
Type following command in Manager Console: Install-Package Microsoft.AspNet.SignalR
SignalR will added in reference also
Step 2: Add ChatHub, MessageDetail & UserDetail Classes
Step 3: I am using jQuery UI Chatbox Plugin(http://magma.cs.uiuc.edu/wenpu1/chatbox.html) in project
Github source code(https://github.com/dexterpu/jquery.ui.chatbox)
Give reference of css & js file of Jquery Chat Box Plugin. It will start working.
Step 4: Add notify.mp3 in directory which will play on message alert.
Step 5: Add chatboxManager.js file in project.
Step 6: Add new Web User Control
Right click on solution> Add New Item> Select Web User Control
I renamed it to ctlChatBox.ascx
Add following code in user control.
Add following code in ctlChatBox.ascx.cs
That's it run project & Start Chat.
You can download the source code of the application from github.