/
      var connection = new autobahn.Connection({
         url: wsuri, // replace with URL of WAMP router if this doesn't serve the file
         realm: "iot_cookbook"
      });

      // fired when connection is established and session attached
      //
      connection.onopen = function (sess, details) {

         session = sess;

         console.log("connected");

         session.call("io.crossbar.examples.yun.ambientlight.get_light_level").then(function (res) {
            console.log("light level cu