rxdb
Version:
A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/
13 lines (12 loc) • 484 B
TypeScript
import { Client } from 'graphql-ws';
import { RxGraphQLPullWSOptions } from '../../types';
export type WebsocketWithRefCount = {
url: string;
socket: Client;
refCount: number;
};
export declare const GRAPHQL_WEBSOCKET_BY_URL: Map<string, WebsocketWithRefCount>;
export declare function getGraphQLWebSocket(url: string, headers?: {
[k: string]: string;
}, options?: RxGraphQLPullWSOptions): Client;
export declare function removeGraphQLWebSocketRef(url: string): void;