1
0
Fork 0
mirror of synced 2024-05-01 19:32:38 +12:00
appwrite/public/scripts/services/realtime.js
2021-08-20 18:37:37 +02:00

20 lines
566 B
JavaScript

(function (window) {
"use strict";
window.ls.container.set('realtime', () => {
return {
current: null,
history: null,
setCurrent: function(currentConnections) {
var scope = this;
scope.current = currentConnections;
return scope.current;
},
setHistory: function(history) {
var scope = this;
scope.history = history;
return scope.history;
}
};
}, true, true);
})(window);