UNPKG

json-crdt-server

Version:

JSON CRDT server and syncing local-first browser client

19 lines (18 loc) 727 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Services = void 0; const PresenceService_1 = require("./PresenceService"); const PubSubService_1 = require("./PubSubService"); const BlocksServices_1 = require("./blocks/BlocksServices"); const MemoryStore_1 = require("./blocks/store/MemoryStore"); class Services { constructor({ store = new MemoryStore_1.MemoryStore(), blocks } = {}) { this.pubsub = new PubSubService_1.PubsubService(); this.presence = new PresenceService_1.PresenceService(); this.blocks = new BlocksServices_1.BlocksServices(this, store, blocks); } async stop() { await this.blocks.stop(); } } exports.Services = Services;