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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.