You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
12 lines
318 B
JavaScript
12 lines
318 B
JavaScript
"use strict";
|
|
console.log("Loading node sdk");
|
|
|
|
var matrix = require("./lib/matrix");
|
|
matrix.request(require("request"));
|
|
|
|
var client = matrix.createClient("http://matrix.org");
|
|
client.publicRooms(function (err, data) {
|
|
console.log("data %s", JSON.stringify(data));
|
|
console.error("err %s", JSON.stringify(err));
|
|
});
|