You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Add examples to show it working in node and browser
This commit is contained in:
10
examples/browser/browserTest.js
Normal file
10
examples/browser/browserTest.js
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
console.log("Loading browser sdk");
|
||||
|
||||
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));
|
||||
});
|
Reference in New Issue
Block a user