Sha256: 808fb5eafeddb91c495b3d310bb424e9ed9bfb0befb9c6832334e6bd1999e354

Contents?: true

Size: 1.51 KB

Versions: 118

Compression:

Stored size: 1.51 KB

Contents

var NUTELLA = require('../../nutella_lib.js')

// Initialize nutella
//var nutella = NUTELLA.init('my_run_id', 'ltg.evl.uic.edu', 'demo_browser_interface');

//    // Subscribe to a channel
//    nutella.net.subscribe("demo1", function(message, c_id, r_id) {
//        console.log('Received "' +  JSON.stringify(message) + '" from ' + c_id + '/' + r_id);
//        nutella.net.unsubscribe('demo1');
//    });

//    // Wildcard subscribe
//    nutella.net.subscribe("demo2/#", function(message, channel, c_id, r_id) {
//        console.log('Received "' +  JSON.stringify(message) + '" on channel ' + channel + ' from ' + c_id + '/' + r_id);
//    });

//    // Publish some stuff
//    nutella.net.publish('demo1');
//    nutella.net.publish('demo1', 'just a string');
//    nutella.net.publish('demo1', {a: 'proper', key: 'value'});
//    nutella.setResourceId('a_particular_resource');
//    nutella.net.publish('demo1');
//    nutella.net.publish('demo1', 'just a string');
//    nutella.net.publish('demo1', {a: 'proper', key: 'value'});

    // Handle requests
    //nutella.net.handle_requests('demo1', function(message, component_id, resource_id) {
    //    return 'this is the returned value';
    //});
    //
    //// Perform a couple requests
    //nutella.net.request('demo1', function(response) {
    //    console.log("This is the response to empty request (GET)");
    //});
    //
    //nutella.net.request('demo1', 'my_request', function(response) {
    //    console.log("This is the response to non-empty request");
    //});

Version data entries

118 entries across 50 versions & 1 rubygems

Version Path
nutella_framework-0.7.3 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.3 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.3 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.2 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.2 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.2 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.1 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.1 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.1 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.0 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.0 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.7.0 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.6.21 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.6.21 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.6.21 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.6.20 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.6.20 framework_components/room-places-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.6.20 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.6.19 framework_components/monitoring-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js
nutella_framework-0.6.19 framework_components/room-places-beacon-cloud-interface/bower_components/nutella_lib/examples/node/nutella_hello_world.js