Greetings StackOverflow.
I would like to hear from you if I understand the concepts of polling and pushing.
Let's say I have a WCF web service method sendUsers(), which sends some data from database from web service to our client. Let's say we have a simple chat app.
POLLING: If I want to achieve constant updates of who is online from web service method, I put timer for example inside Global.asax in asp.net client which calls web service method sendOnlineUsers() every 5 seconds(depends on timer) and updates data on client side.
PUSHING: I understand this as, every time client calls some method on client side to web service, you properly respond to client with DUPLEX callbacks with proper web service method.
Which means in theory means for example: - User logins to the chat, which triggers login() client side method, which calls addUser() webservice method and inserts himself at current online list in database. So when web service receives that call, it triggers callback method to ALL users, which updates data on client side of "online users" to ALL clients atm in chat, with this new data?