1 | import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
|
2 | import { SubscriptionClient, ClientOptions } from 'subscriptions-transport-ws';
|
3 | export declare namespace WebSocketLink {
|
4 | interface Configuration {
|
5 | uri: string;
|
6 | options?: ClientOptions;
|
7 | webSocketImpl?: any;
|
8 | }
|
9 | }
|
10 | export import WebSocketParams = WebSocketLink.Configuration;
|
11 | export 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 |