Wirecloud plugin providing PubSub support.
Project description
============
Requirements
============
* Wirecloud 0.3.0
* A PubSub server (https://svn.forge.morfeo-project.org/4caast/trunk/WP6/pubsub)
Installation
------------
Since *wirecloud_pubsub* uses django.contrib.static functionalities, you should
add it to your ``INSTALLED_APPS`` in ``settings.py``: ::
INSTALLED_APPS = (
...
'wirecloud_pubsub',
...
)
Also you have to add it to your ``WIRECLOUD_PLUGINS``: ::
WIRECLOUD_PLUGINS = (
...
'wirecloud_pubsub.wirecloud.PubSubPlugin',
...
)
Don't forget to run the collectstatic and compress commands on your Wirecloud
installation: ::
$ ./manage.py collectstatic
$ ./manage.py compress
Usage
-----
Once wirecloud-pubsub is installed and activated, gadgets can take advantage of
the PubSub functionallities through EzWebAPI.SilboPS. Currently,
EzWebAPI.SilboPS only exports PubEndPoint, SubEndPoint and Filter classes. Full
documentation of SilboPS is available at
https://svn.forge.morfeo-project.org/4caast/trunk/WP6/pubsub/README.md.
Example
------
::
var endpoint;
function publish() {
endpoint.publish({'value': 'Hello world!'});
}
function start_publishing() {
endpoint.advertise({'value', ['str']});
setInterval(publish, 2000);
}
endpoint = EzWebAPI.SilboPS.PubEndPoint({
onopen: function(endpoint) {
alert('Endpoint ready');
start_publishing();
},
onclose: function(endpoint) {
alert('Endpoint closed');
}
})
Requirements
============
* Wirecloud 0.3.0
* A PubSub server (https://svn.forge.morfeo-project.org/4caast/trunk/WP6/pubsub)
Installation
------------
Since *wirecloud_pubsub* uses django.contrib.static functionalities, you should
add it to your ``INSTALLED_APPS`` in ``settings.py``: ::
INSTALLED_APPS = (
...
'wirecloud_pubsub',
...
)
Also you have to add it to your ``WIRECLOUD_PLUGINS``: ::
WIRECLOUD_PLUGINS = (
...
'wirecloud_pubsub.wirecloud.PubSubPlugin',
...
)
Don't forget to run the collectstatic and compress commands on your Wirecloud
installation: ::
$ ./manage.py collectstatic
$ ./manage.py compress
Usage
-----
Once wirecloud-pubsub is installed and activated, gadgets can take advantage of
the PubSub functionallities through EzWebAPI.SilboPS. Currently,
EzWebAPI.SilboPS only exports PubEndPoint, SubEndPoint and Filter classes. Full
documentation of SilboPS is available at
https://svn.forge.morfeo-project.org/4caast/trunk/WP6/pubsub/README.md.
Example
------
::
var endpoint;
function publish() {
endpoint.publish({'value': 'Hello world!'});
}
function start_publishing() {
endpoint.advertise({'value', ['str']});
setInterval(publish, 2000);
}
endpoint = EzWebAPI.SilboPS.PubEndPoint({
onopen: function(endpoint) {
alert('Endpoint ready');
start_publishing();
},
onclose: function(endpoint) {
alert('Endpoint closed');
}
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wirecloud-pubsub-0.1.tar.gz
(9.6 kB
view details)
Built Distribution
wirecloud_pubsub-0.1-py2.7.egg
(13.2 kB
view details)
File details
Details for the file wirecloud-pubsub-0.1.tar.gz
.
File metadata
- Download URL: wirecloud-pubsub-0.1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb43810d2b9b4fa0000341e3b22d1136578db1ff7357bd70e3ecac0ed95870d5 |
|
MD5 | e42b117d4bd48ae702eba0039dee6244 |
|
BLAKE2b-256 | 325cf0d6e8f2900722ef6cd3618b1fc7dc2e76fdb0ed760e1a5d93587887be4d |
File details
Details for the file wirecloud_pubsub-0.1-py2.7.egg
.
File metadata
- Download URL: wirecloud_pubsub-0.1-py2.7.egg
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1b2b71e6cfccb2fecea55478c91229a465ef3bd4ff90f81e880bb34a7819c8f |
|
MD5 | be381a0587c4714e90a9263c3a704f3b |
|
BLAKE2b-256 | 71aff15a49a5caf8c392ab4b5b58096047e431caf9245e78364a9ba276c48d64 |