Click here to Skip to main content
15,888,008 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi,

i want to add live chat functionality in my shopping site iam using MVC4. if customer want any information about the product , he/she allowed to chat with Admin . Only registered users allowed to chat . i have no idea how to start.
plz help me,
Thanks in advance
Posted
Updated 12-Apr-17 20:52pm

 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 24-Dec-13 3:54am    
Agree on RignalR; my 5.
—SA
JoCodes 24-Dec-13 4:32am    
Thanks SA
dorababu407 24-Dec-13 8:12am    
i just see about SignalR Concept, i think it is not useful for me, becoz it sends all Admin post to all customers. i just want face to face chat( Admin - Customer) chat. chat conversation of one customer will not be see by other customers.Registered customers only allowed to chat.
JoCodes 24-Dec-13 9:24am    
You can do the same with signalr.
Sergey Alexandrovich Kryukov 24-Dec-13 11:11am    
Correct. As OP apparently failed to understand the idea, I added Solution 2 with more detailed explanation of things, and referenced my past even more detailed answer, please see.
—SA
In addition to Solution 1:

Please see the explanation of push technology: http://en.wikipedia.org/wiki/Server_push[^].

Isn't that obvious why traditional client-server model and pull technology predominantly used on the Web is bad for such a basic application as a chat? The client side cannot have notification on any replies on the thread and would have to do permanent polling of the server side, which is too wasteful and not enough responsive at the same time.

SignalR is one of the workaround solutions. Please see:
http://en.wikipedia.org/wiki/SignalR[^],
http://www.asp.net/signalr[^].

For some more explanations, please see my past answer, more detailed one: Application 'dashboard' for website accounts[^].

—SA
 
Share this answer
 
Comments
JoCodes 24-Dec-13 11:47am    
Thanks for making the concept more clear to the OP ...my 5
Sergey Alexandrovich Kryukov 24-Dec-13 11:53am    
Thank you.
—SA
 
Share this answer
 
Comments
Kats2512 13-Apr-17 5:42am    
4 years after an answer has already been given and accepted.
adtya6436 13-Apr-17 7:23am    
yes i do agree with you, though its working live example will give an idea to someone who really don't wanna read docs.
Member 13341083 5-Oct-17 5:45am    
how to share images to connected user using signalr

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900