In this page: http://dev.s-cubism.com/web2py_plugins you can find a set of plugins, one of them are message plugin. (experimental, but I used and it works well)
Also there is a video (in portuguese) about real time message: https://vimeo.com/38972256 --