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