|
|
@ -21,6 +21,11 @@ define([
|
|
|
|
S.leave();
|
|
|
|
S.leave();
|
|
|
|
} catch (e) { console.log(e); }
|
|
|
|
} catch (e) { console.log(e); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (S.session && S.session.stop) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
S.session.stop();
|
|
|
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
|
|
|
|
}
|
|
|
|
var abort = Util.find(S, ['session', 'realtime', 'abort']);
|
|
|
|
var abort = Util.find(S, ['session', 'realtime', 'abort']);
|
|
|
|
if (typeof(abort) === 'function') {
|
|
|
|
if (typeof(abort) === 'function') {
|
|
|
|
S.session.realtime.sync();
|
|
|
|
S.session.realtime.sync();
|
|
|
|