Hi all,
I'm trying to use asp.net to code a chat window and I would like to make the
http request delay as long as possible till the process/thread detects a new
incoming message.
basically something like the following:
while(nonewmessages) {
nonewmessages = checkfornewmessages();
delay(100);
}
I haven't found a delay function nor does thread.sleep works.
I understand that coding a meta tag refresh rate can resolve the problem in
a "pull" like fashion but I would like to "push" the data on the fly through
displaying existing chat messages and then holding the http request
connection until next message arrives. At that point a refresh can be made
and thus saving unnecessary amounts of requests being made to the server.
Thanks for any input into this matter.
Robert Huie