1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Basic structure of a react SDK and start of an implementation.

This commit is contained in:
David Baker
2015-06-09 17:40:42 +01:00
commit c42733ec95
15 changed files with 407 additions and 0 deletions

15
src/MatrixClientPeg.js Normal file
View File

@@ -0,0 +1,15 @@
// A thing that holds your Matrix Client
var Matrix = require("matrix-js-sdk");
var matrixClient = null;
module.exports = {
get: function() {
return matrixClient;
},
replaceUsingUrl: function(hs_url) {
matrixClient = Matrix.createClient(hs_url);
}
};