Jump to content

Hanging AJAX


Wolphie

Recommended Posts

Is it possible to intentionally hang an AJAX application to listen for any incoming data?

 

For example, you have a chat room... you open a connection to get any new messages... if they're are no new messages then keep the connection open until a message is available. But have a timeout interval so it doesn't cause any over head?

 

Correct me if I'm wrong about anything, it's just I'm creating a chat application and would like to know the most efficient and viable method of retrieving messages, the user list etc..

Link to comment
https://forums.phpfreaks.com/topic/158669-hanging-ajax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.