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);
}
};