WebsocketRequestHandler
Implements
Constructors
new WebsocketRequestHandler()
new WebsocketRequestHandler():
WebsocketRequestHandler
Returns
Properties
cleanup()?
optional
cleanup: () =>void
Returns
void
client?
optional
client:SubscriptionClient
Methods
destroy()
destroy():
Promise
<void
>
Returns
Promise
<void
>
Implementation of
handle()
handle(
request
:GraphQLRequestOptions
):Observable
<GraphQLResponseData
>
Parameters
• request: GraphQLRequestOptions
Returns
Observable
<GraphQLResponseData
>
Implementation of
onConnected()
onConnected(
subscriber
:Subscriber
<GraphQLResponseData
>,error
:unknown
,data
:unknown
):void
Parameters
• subscriber: Subscriber
<GraphQLResponseData
>
• error: unknown
• data: unknown
Returns
void