secure messaging

This commit is contained in:
ansuz
2017-10-02 18:57:17 +02:00
parent f9d27d2783
commit 94c392b79f
7 changed files with 925 additions and 38 deletions

View File

@@ -7,19 +7,8 @@ define([
'/common/sframe-common-outer.js'
], function (nThen, ApiConfig, $, RequireConfig, SFCommonO) {
var requireConfig = RequireConfig();
var addRpc = function (sFrameChan, Cryptpad) {
Cryptpad = Cryptpad;
// protocols must still be declared in sframe-protocol.js
/*
sFrameChan.on('Q_HEY_BUDDY', function (data, cb) {
cb({
error: null,
response: "HEY BUDDY",
});
});
*/
};
var messenger;
// Loaded in load #2
nThen(function (waitFor) {
@@ -51,7 +40,7 @@ define([
}).nThen(function (/*waitFor*/) {
SFCommonO.start({
noRealtime: true,
addRpc: addRpc,
messaging: true,
});
});
});