1
0
Fork 0
mirror of synced 2024-06-27 18:50:47 +12:00
appwrite/public/scripts/services/realtime.js

20 lines
566 B
JavaScript
Raw Normal View History

(function (window) {
"use strict";
window.ls.container.set('realtime', () => {
return {
current: null,
2021-08-21 04:37:37 +12:00
history: null,
setCurrent: function(currentConnections) {
var scope = this;
scope.current = currentConnections;
return scope.current;
2021-08-21 04:37:37 +12:00
},
setHistory: function(history) {
var scope = this;
scope.history = history;
return scope.history;
}
};
}, true, true);
})(window);