nction () {

            session.publish('com.example.onhello', ['Hello from JavaScript (browser)']);
            console.log("published to topic 'com.example.onhello'");
        }, 1000);


        // REGISTER a procedure for remote calling
        //
        function mul2(args) {
            var x = args[0];
            var y = args[1];
            console.log("mul2() called with " + x + " and " + y);
            return x * y;
        }

        session.register('com.example.mul2', mul2).then(
           