Implementing one-to-one chat using MySql

We have based our App on MySql hosted in a cloud. When trying to implement a chat function we come short since there is no .whendatachanged event under Web1 component. Is there any solutions (extensions) or workaround this issue that you can suggest?
We are grateful for any info.

Try this with Ajax

This is another idea, use...

meta http-equiv="refresh" content="10,chat.php"