> I am trying to design a text messaging service with cherrypy.
> Can someone give me some advice about how to push some notification to
> the browser eg when there is a new message that arrives?
> I have tried to use yield statements, but I want to make like some box
> start flashing or something when a message arrives, and I think I
> cannot do this with yield statements.
You cannot "push" anything to a browser. That's just not how the web
works -- it is entirely a "pull" technology.
periodically polls your server to see if there is something new. You
can do that with "refresh", but it's more common to use AJAX requests.
> Thanks for you responses.
> Does anyone have any idea what kind of technology google hangouts uses?
> I don't see repeated http requests from the Chrome "Developer Tools"
> thing when I use google hangouts when there are no messages being
> sent, so I guess it does not use polling from the browser.
They use a proprietary protocol to communicate with their server. It's
not HTTP. They probably do what Björn suggested and set up a websockets
connection to transfer the video.