Reputation: 55
I was trying to write a sample chat application using Web Services in .net 2 , but I have no idea how can I inform the clients whenever a new message comes to the chat server.
the Web Service should send the received message to all clients, but I have no idea how I can send the message to all clients. Does anyone can tell me how to do that in simple way? Thanks for your help;
Upvotes: 2
Views: 795
Reputation: 3147
You can use SignalR
SignalR is a Async signaling library for .NET to help build real-time, multi-user interactive web applications
A good example that using SignalR for realtime chat is JabbR and you can find the source code on Github
Upvotes: 2
Reputation: 2366
As far as I know, it's not common practice for servers to broadcast clients like that. Normally the client should have a little routine to query the server for changes or events.
Upvotes: 0