Skip to main content

Wirecloud plugin providing PubSub support.

Project description


You can get wirecloud-pubsub from PyPI with…

# pip install wirecloud-pubsub

Since wirecloud_pubsub uses django.contrib.static functionalities, you should add it to your INSTALLED_APPS in


You also have to add it to your WIRECLOUD_PLUGINS:


As last step, add a DEFAULT_SILBOPS_BROKER setting with the URL of the broker to use:


Don’t forget to run the collectstatic and compress commands on your Wirecloud installation:

$ ./ collectstatic
$ ./ compress


Once wirecloud-pubsub is installed and activated, widgets and operators can take advantage the PubSub functionallities through the MashupApplication.SilboPS object. Currently, the MashupApplication.SilboPS object only exports the PubEndPoint, SubEndPoint and Filter classes defined by the original javascript bindings provided by SilboPS. Full documentation of SilboPS is available at



var endpoint;

function publish() {
    endpoint.publish({'value': 'Hello world!'});

function start_publishing() {
    endpoint.advertise({'value', ['str']});
    setInterval(publish, 2000);

endpoint = new MashupApplication.SilboPS.PubEndPoint({
    onopen: function(endpoint) {
        alert('Endpoint ready');
    onclose: function(endpoint) {
        alert('Endpoint closed');


var endpoint, filter;

filter = new MashupApplication.SilboPS.Filter();

endpoint = new MashupApplication.SilboPS.SubEndPoint({
    onopen: function (endpoint) {
        alert('Endpoint ready');
    onclose: function (endpoint) {
        alert('Endpoint closed');
    onnotify: function (endpoint, data) {
        var notification = data.notification;

Project details

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.4a1.tar.gz (103.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page