mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-05-21 08:53:44 +03:00
12 lines
336 B
JavaScript
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));
|
|
});
|