1 | import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
|
2 | import { SubscriptionClient, ClientOptions } from 'subscriptions-transport-ws';
|
3 | export declare namespace WebSocketLink {
|
4 | |
5 |
|
6 |
|
7 | interface Configuration {
|
8 | |
9 |
|
10 |
|
11 | uri: string;
|
12 | |
13 |
|
14 |
|
15 | options?: ClientOptions;
|
16 | |
17 |
|
18 |
|
19 | webSocketImpl?: any;
|
20 | }
|
21 | }
|
22 | export import WebSocketParams = WebSocketLink.Configuration;
|
23 | export declare class WebSocketLink extends ApolloLink {
|
24 | private subscriptionClient;
|
25 | constructor(paramsOrClient: WebSocketLink.Configuration | SubscriptionClient);
|
26 | request(operation: Operation): Observable<FetchResult> | null;
|
27 | }
|