Say I want to write a peer to peer chat application. And I use a WCF service as the server that the clients 'log in' to so that they can find each other's ip addresses and ports.
Well, say also I have a textbox in my client application that display all users that are online. Everytime users log in or out I want to update this 'Who's online' textbox so that only the currently online users are shown.
So the server needs to send information out to all clients once a user logs in or out. But it seems WCF can only send data when responding to requests....
Am I missing something here, is WCF able to handle this situation?
There are several approaches to this problem, these would probably be the most common:
I think you need a duplexing service.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With