UNPKG

rxdb

Version:

A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/

12 lines (11 loc) 396 B
import { Client } from 'graphql-ws'; 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; }): Client; export declare function removeGraphQLWebSocketRef(url: string): void;