Sha256: 0029aa4a64aa8cf1b1b19915514ea4988c17046971c5c76e6decf63013570f49

Contents?: true

Size: 403 Bytes

Versions: 118

Compression:

Stored size: 403 Bytes

Contents

var mqtt = require('../../simple-js-mqtt-client');

var client = mqtt.connect('ltg.evl.uic.edu');

client.subscribe('demo1', function(message) {
    console.log("First subscription: " + message);
});

var sscb = function(message){
    console.log("Second subscription: " + message);
    client.publish('demo2', "I'm gonna die")
    client.unsubscribe('demo1', sscb);
};
client.subscribe('demo1', sscb);

Version data entries

118 entries across 50 versions & 1 rubygems

Version Path
nutella_framework-0.6.11 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.11 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.10 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.10 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.10 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.9 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.9 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.9 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.8 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.8 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.8 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.7 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.7 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.7 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.6 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.6 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.6 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.5 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.5 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js
nutella_framework-0.6.5 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/mqtt_client_hello_world.js