UNPKG

686 BTypeScriptView Raw
1import { SubscriptionClient, ClientOptions } from 'subscriptions-transport-ws';
2import { ApolloLink, Operation, FetchResult } from '../core';
3import { Observable } from '../../utilities';
4export declare namespace WebSocketLink {
5 interface Configuration {
6 uri: string;
7 options?: ClientOptions;
8 webSocketImpl?: any;
9 }
10}
11export import WebSocketParams = WebSocketLink.Configuration;
12export declare class WebSocketLink extends ApolloLink {
13 private subscriptionClient;
14 constructor(paramsOrClient: WebSocketLink.Configuration | SubscriptionClient);
15 request(operation: Operation): Observable<FetchResult> | null;
16}
17//# sourceMappingURL=index.d.ts.map
\No newline at end of file