UNPKG

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