You are here: Re: Ajax chat system - Active HTTP connection? « PHP Programming Language « IT news, forums, messages
Re: Ajax chat system - Active HTTP connection?

Posted by Jerry Stuckle on 11/17/95 11:58

jason.m.ho@gmail.com wrote:
> Hello!
> I am trying to build an ajax chat system. Currently I have it so that
> when you chat, you upload your message to the database, and each client
> is polling that database to see if he/she has any new messages. The
> problem with this is that I poll at 2 second intervals (since
> connection is not active), and so its not as responsive as I'd like it
> to be.
>
> My question is, is an active HTTP connection possible? How did Meebo or
> Gmail implement their ajax chat? Can someone point me to a better tool
> for implementing an active-connection chat, rather than a poll-based
> one?
>
> Thank You!
> - Jason
>

No, it's not possible to continue an active HTTP connection. That's not
how the protocol works.

Don't know how Meebo or Gmail do it; never looked. But if I were doing
it I'd use java.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация