You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
import type { ClientOptions } from "subscriptions-transport-ws"; |
|
import { SubscriptionClient } from "subscriptions-transport-ws"; |
|
import type { Operation, FetchResult } from "../core/index.js"; |
|
import { ApolloLink } from "../core/index.js"; |
|
import type { Observable } from "../../utilities/index.js"; |
|
export declare namespace WebSocketLink { |
|
/** |
|
* Configuration to use when constructing the subscription client (subscriptions-transport-ws). |
|
*/ |
|
interface Configuration { |
|
/** |
|
* The endpoint to connect to. |
|
*/ |
|
uri: string; |
|
/** |
|
* Options to pass when constructing the subscription client. |
|
*/ |
|
options?: ClientOptions; |
|
/** |
|
* A custom WebSocket implementation to use. |
|
*/ |
|
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=index.d.ts.map
|