nsole.log("authenticated with authid '" + details.authid + "' and authrole '" + details.authrole + "'");
         };

         connection.onclose = function (reason, details) {
            console.log("disconnected", reason, details.reason, details);
         }

         connection.open();
      </script>
   </body>
</html>
