Answered by:
WCF - how to update client data in real time

Question
-
User1480313271 posted
I am making the chat online.
I have a WCF service, and I have a service method sendUsers(). This method retrieves all users online, from my database, send this data to client so client can show who is online.
I am intrested what is the best approach to update these online users in real time? Should I use polling of that method on client side where I proxy call sendUsers() method or is there any other approach?
If polling is ok, is there any simple example to show for 1 method?
Thanks,
Yevgeni Pavlov
Sunday, July 28, 2013 8:13 PM
Answers
-
User260886948 posted
Hi,
I will recommand you use the WCF Callbacks.
For more information, please try to refer to this article:
#Push Data to the Client using WCF CallBack Service:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=721 .Here is a similar thread:
http://stackoverflow.com/questions/5649249/how-to-configure-wcf-to-push-real-time-data-to-the-client .Best Regards,
Amy Peng- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, July 29, 2013 9:34 PM -
User503812343 posted
You can achieve this using WCF callback calls. In WCF there are three types of message exchange patterns. The duplex pattern allows you to talk to your clients.
check this article for WCF message exchange patterns and implementation of duplex services
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 30, 2013 11:02 AM
All replies
-
Sunday, July 28, 2013 9:42 PM
-
User260886948 posted
Hi,
I will recommand you use the WCF Callbacks.
For more information, please try to refer to this article:
#Push Data to the Client using WCF CallBack Service:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=721 .Here is a similar thread:
http://stackoverflow.com/questions/5649249/how-to-configure-wcf-to-push-real-time-data-to-the-client .Best Regards,
Amy Peng- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, July 29, 2013 9:34 PM -
User503812343 posted
You can achieve this using WCF callback calls. In WCF there are three types of message exchange patterns. The duplex pattern allows you to talk to your clients.
check this article for WCF message exchange patterns and implementation of duplex services
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 30, 2013 11:02 AM