@palmares/events
Version:
This is the events framework for palmares, it's responsible for handling everything that is Pub/Sub like websockets, pub/sub like redis, and other types of asynchronous background tasks
20 lines • 1.05 kB
TypeScript
/**
* This is the event server for the Palmares framework. If the server doesn't already exist
* it will create a new one (a server is just a recursive setInterval that will be called every 12 days)
* so the program keeps running. If a Server was created, then it will not initialize anything, it'll be
* just a simple EventEmitter instance.
*/
export declare const eventsAppServer: {
new (domains: import("@palmares/core").Domain[], settings: import("@palmares/core").SettingsType2): {
start: (configureCleanup: (args?: any) => Promise<void> | void) => Promise<void>;
load: ({ settings, domains }: {
domains: import("@palmares/core").Domain[];
commandLineArgs: import("@palmares/core").DomainHandlerFunctionArgs["commandLineArgs"];
settings: import("@palmares/core").SettingsType2;
}) => Promise<void>;
close: () => Promise<void>;
baseAppServer: import("@palmares/core/dist/src/app").BaseAppServer;
};
$$type: string;
};
//# sourceMappingURL=index.d.ts.map