1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-05-21 08:53:44 +03:00
matrix-js-sdk/examples/browser/browserTest.js
2015-03-04 20:38:29 +00:00

12 lines
336 B
JavaScript

"use strict";
console.log("Loading browser sdk");
// assign the global request module from browser-request.js
matrixcs.request(request);
var client = matrixcs.createClient("http://matrix.org");
client.publicRooms(function (err, data) {
console.log("data %s", JSON.stringify(data));
console.error("err %s", JSON.stringify(err));
});