console.log("Loading browser sdk"); var client = matrixcs.createClient({ baseUrl: "https://matrix.org" }); client.publicRooms().then(function (data) { console.log("data %s [...]", JSON.stringify(data).substring(0, 100)); console.log("Congratulations! The SDK is working on the browser!"); var result = document.getElementById("result"); result.innerHTML = "
The SDK appears to be working correctly.
"; });