        console.log("Ok, AutobahnJS loaded", autobahn.version);

         var connection = new autobahn.Connection({
            url: "ws://localhost:8080/ws",
            realm: "realm1",
            authmethods: ["anonymous"],
         });

         connection.onopen = function (session, details) {
            console.log("connected session with ID " + session.id);
            console.log("authenticated using method '" + details.authmethod + "' and provider '" + details.authprovider + "'");
            co