UNPKG

smc-hub

Version:

CoCalc: Backend webserver component

18 lines 726 B
"use strict"; //######################################################################## // 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; var clients = {}; function getClients() { return clients; } exports.getClients = getClients; function pushToClient(mesg) { var _a; (_a = clients[mesg.client_id]) === null || _a === void 0 ? void 0 : _a.push_to_client(mesg); } exports.pushToClient = pushToClient; //# sourceMappingURL=clients.js.map