FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » chat on web, Ajax ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: chat on web, Ajax ? [message #177158 is a reply to message #177157] Fri, 24 February 2012 14:15 Go to previous messageGo to previous message
SL is currently offline  SL
Messages: 20
Registered: February 2012
Karma:
Junior Member
> I thought I have gathered all pieces I need, then suddenly I realise
> there is still one problem.
>
> I am implementing chat on the web, ie on a browse. On browser, I can
> only use javascript. So the problem is what method to use to listen
> for incoming data.
>
> Ajax ? I am just wondering; Ajax does not seem to bother about port,
> I mean the standard method is "open socket at server, port 8888...".
>
> Of course, when data is sent to a php file on server, it must be port
> 80.
> Is this the only way on a browser ?
>

After reading some material, it seems that a timer (for Ajax) is necessary
to pool the server for messages.

With java or C/C++, there is no timer, ie a client just listens on a socket,
and it is notified once data is in. Correct me if I am wrong (ie the client
does not pool the server in this case).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FastCGI & PHP
Next Topic: PHP socket and NAT
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 07:57:55 GMT 2024

Total time taken to generate the page: 0.05249 seconds