Go to page content

WebSockets and Comet

Push content to the browser with the built-in WebSockets and Comet support.

Zotonic has complete WebSockets and Comet support. For every page there is process you can post messages to, which will be pushed to the browser. You can even post messages to the session, which will post them to all open tabs in the user’s browser.

Zotonic automatically switches between WebSockets or Comet, depending on your browser.

Or send your message to the user, which pushes the message to all open tabs of all browsers the user is running.

It is that easy.