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.

Comments

  • avatar

    albert

    Posted 1 year, 1 month ago.

    Nice! I want to try this.

  • avatar

    Chris

    Posted 1 month, 23 days ago.

    That sounds awesome.

  • avatar

    Mustafa

    Posted 1 month, 22 days ago.

    I think so :)