Question

I just want to ask that if it is possible to to receive chat from an HTML page to twisted web server and PUSH it on to another HTML page asynchronously.

I just want someone to point out the way to do this and things to use (I want to avoid using web sockets).

help much appreciated

Was it helpful?

Solution

AJAX long polling, for example. See http://en.wikipedia.org/wiki/Comet_%28programming%29

You should use another GET (or, better, POST) handler that receives AJAX request, decodes it and broadcast to all polling connections. So, you need handler (page) for polling and for sending.

OTHER TIPS

Server-sent events is an API that works in many browsers. Not IE, unfortunately, but if you want live two-way stuff to a web browser and you want to address a wide market you're probably going to need at least two implementations anyway.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top