more testing and crap

This commit is contained in:
Caleb James DeLisle
2016-03-25 12:45:51 +01:00
parent 4b35a145e3
commit 420a7098a6
5 changed files with 68 additions and 44 deletions

View File

@@ -1163,6 +1163,7 @@ module.exports.create = function (userName, authToken, channelId, initialState,
Common.assert(typeof(initialState) === 'string');
var realtime = ChainPad.create(userName, authToken, channelId, initialState, conf);
return {
Sha: Sha,
onPatch: enterChainPad(realtime, function (handler) {
Common.assert(typeof(handler) === 'function');
realtime.patchHandlers.push(handler);