I want to realize the following with AJAX and .NET, but I don't know the best way to do it.
Person A comes to the website, clicks a button 'I want to chat'. Then Person B comes and he should see a list where he can choose 'chat with A'.
I have two questions:
- What is the best way to address B's message to A? After B has sent his message to the server, how does the message get to A?
- Is it possible to invoke a "update-chat" function for A when a message for him arrives? (Of course, A's browser could ask the server 'do you have a message for me?' every second, but this seems not a good solution.)
Thank you in advance!
View Complete Post