@jsonjoy.com/reactive-rpc
Version:
Reactive-RPC is a library for building reactive APIs over WebSocket, HTTP, and other RPCs.
19 lines • 763 B
JavaScript
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;
//# sourceMappingURL=Services.js.map
;