Sha256: 67451bcd01c8f280f8e3b4046f37066cce3ab52e8df287111ec6c830488883a3
Contents?: true
Size: 622 Bytes
Versions: 118
Compression:
Stored size: 622 Bytes
Contents
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Simple MQTT client hello</title> </head> <body> <script src="bower_components/bower-mqttws/mqttws31.js"></script> <script src="../../simple-js-mqtt-client.js"></script> <script> 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.unsubscribe('demo1', sscb); }; client.subscribe('demo1', sscb); </script> </body> </html>
Version data entries
118 entries across 50 versions & 1 rubygems