Skip to content
This repository
Fetching contributors…


Cannot retrieve contributors at this time

file 31 lines (18 sloc) 0.813 kb

System Message: ERROR/3 (<string>, line 1)

Unknown directive type "highlight".

.. highlight:: django

Enable WebSockets or Comet communication.

This scomp starts the WebSockets or Comet communication.

When available then a WebSockets connections is opened, otherwise a long polling Comet connection is started. The WebSockets connection will also be used for sending Ajax requests to the server.

Comet connections are not enabled by default to prevent problems with certain browsers that support only a limited number of open connections.


{% stream %}

This will add javascript to the output of the :ref:`scomp-script`. The added javascript starts the connection.

System Message: ERROR/3 (<string>, line 20); backlink

Unknown interpreted text role "ref".

For this tag to work, you need to include the main Zotonic Javascript include, like this:

{% lib "js/apps/zotonic-1.0.js" %}

System Message: ERROR/3 (<string>, line 29)

Unknown directive type "seealso".

.. seealso:: :ref:`scomp-script`

Something went wrong with that request. Please try again.