Jump to content

AJAX (maybe?) Question regarding Facebook


Recommended Posts

Alright, so I recently toyed around with Facebook's chat feature, and to my complete amazement, messages are sent instantly from one person to another. I would have expected a delay, thinking maybe the chat loaded every five seconds to see if a new message appeared, but this was certainly not the case. I had two computers on right next to each other and I sent a message, and the other computer received it instantly. I even tested it over different networks and it was still instant.

 

I have never seen anything like it where data could be received as quickly as this. Typically what I would expect is the page to check for new messages every few seconds and display them if they exist. I honestly have no idea how to do this instantaneous programming so any insight would be very much helpful!

Link to comment
https://forums.phpfreaks.com/topic/200750-ajax-maybe-question-regarding-facebook/
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.