apollo-link-ws
Version:
WebSocket transport layer for GraphQL
16 lines • 679 B
TypeScript
import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
import { SubscriptionClient, ClientOptions } from 'subscriptions-transport-ws';
export declare namespace WebSocketLink {
interface Configuration {
uri: string;
options?: ClientOptions;
webSocketImpl?: any;
}
}
export import WebSocketParams = WebSocketLink.Configuration;
export declare class WebSocketLink extends ApolloLink {
private subscriptionClient;
constructor(paramsOrClient: WebSocketLink.Configuration | SubscriptionClient);
request(operation: Operation): Observable<FetchResult> | null;
}
//# sourceMappingURL=webSocketLink.d.ts.map