Skip to content

WebsocketRequestHandler

Implements

Constructors

new WebsocketRequestHandler()

new WebsocketRequestHandler(): WebsocketRequestHandler

Returns

WebsocketRequestHandler

Properties

cleanup()?

optional cleanup: () => void

Returns

void


client?

optional client: SubscriptionClient

Methods

destroy()

destroy(): Promise<void>

Returns

Promise<void>

Implementation of

GraphQLRequestHandler.destroy


handle()

handle(request: GraphQLRequestOptions): Observable<GraphQLResponseData>

Parameters

request: GraphQLRequestOptions

Returns

Observable<GraphQLResponseData>

Implementation of

GraphQLRequestHandler.handle


onConnected()

onConnected(subscriber: Subscriber<GraphQLResponseData>, error: unknown, data: unknown): void

Parameters

subscriber: Subscriber<GraphQLResponseData>

error: unknown

data: unknown

Returns

void