UNPKG

@eventstore.net/event.store

Version:

A simple and fast EventStore that support multiple persistence and notification providers

12 lines (11 loc) 519 B
import { Message } from '../model/message'; import { HasSubscribers, Publisher, Subscriber, Subscription } from './publisher'; /** * A Publisher that handle all the data in memory. It is a very simple implementation that should be used * only for development and test purposes. */ export declare class InMemoryPublisher implements Publisher, HasSubscribers { private listeners; publish(message: Message): Promise<boolean>; subscribe(aggregation: string, subscriber: Subscriber): Promise<Subscription>; }