rxdb
Version:
A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/
7 lines (6 loc) • 571 B
TypeScript
import type { RxDatabase, RxReplicationHandler } from '../../types/index.d.ts';
import type { ServerOptions } from 'isomorphic-ws';
import type { WebsocketServerOptions, WebsocketServerState } from './websocket-types.ts';
export declare function startSocketServer(options: ServerOptions): WebsocketServerState;
export declare function getReplicationHandlerByCollection<RxDocType>(database: RxDatabase<any>, collectionName: string): RxReplicationHandler<RxDocType, any>;
export declare function startWebsocketServer(options: WebsocketServerOptions): WebsocketServerState;