Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Streaming Chat

by {NULE} (Hermit)
on Oct 31, 2003 at 21:43 UTC ( [id://303722]=note: print w/replies, xml ) Need Help??


in reply to Streaming Chat

Hi Kova,

You'll experience some real limitations to HTTP trying to do this. There is a multipart/x-mixed-replace mime-type that can be used (I think just with Mozilla based browsers) for things like constantly pushing image data to a browser for something like a webcam. However the support for this isn't consistent, so you'll have headaches trying to implement it. This is why so often a java applet/application or something "thicker" like a real IM application is used for chat rather than just HTTP/HTML.

I wrote a stand-alone Perl-CGI "web-chat" utility that uses periodic reloading to get the job done. It ain't pretty, but it might give you some ideas. It works pretty well, and I still use it occasionally where I work. It sounds much like what you have done.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://303722]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found