@cocalc/hub
Version:
CoCalc: Backend webserver component
17 lines • 670 B
JavaScript
;
//########################################################################
// This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
// License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
//########################################################################
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushToClient = exports.getClients = void 0;
const clients = {};
function getClients() {
return clients;
}
exports.getClients = getClients;
function pushToClient(mesg) {
clients[mesg.client_id]?.push_to_client(mesg);
}
exports.pushToClient = pushToClient;
//# sourceMappingURL=clients.js.map