Improve realtime channel for onlyoffice

This commit is contained in:
yflory
2019-01-15 10:46:39 +01:00
parent efdecd4059
commit b79ba61984
4 changed files with 116 additions and 61 deletions

View File

@@ -88,7 +88,10 @@ define([
var openRtChannel = function (data) {
// XXX
var channel = Hash.createChannelId();
ctx.sframeChan.query('Q_OO_OPENCHANNEL', channel, function (err, obj) {
ctx.sframeChan.query('Q_OO_OPENCHANNEL', {
channel: channel,
lastCp: data.lastCp
}, function (err, obj) {
if (err || (obj && obj.error)) { console.error(err || (obj && obj.error)); }
});
};