How send notify to client?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I'm doing web site to play chess online, when a player play, I need to send a notify to another client for it can refresh, in windows applications I can do that throw observer pattern, but in web, how I can doit?
 
Hi,

In web scenario just clients can initiate request to server but servers
can't initiate calls to clients just response to client requests. There
are several ways to achieve what you after:
1) Use client side code (Java Applets, COM object, Assembly – if your
client got CLR) to create publish subscribe design pattern.
2) Use XMLHttpRequest with javascript and timer to check the server for
state change.
3) Use Iframe with <META HTTP-EQUIV="Refresh" CONTENT="3 "> to auto
refresh Iframe. While Iframe process on the server side you can check
state and return indication to client side.

HTH
Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top