     function (reg) {
                    console.log('procedure registered');
                },
                function (err) {
                    console.log('failed to register procedure', err);
                }
        );


        // CALL a remote procedure every second
        //
        var x = 0;

        t2 = setInterval(function () {

            session.call('com.example.add2', [x, 18]).then(
                    function (res) {
                        console.log("add2() result:", res);
    