Class DefaultGrahqlStreamClient
Hierarchy
-
DefaultGrahqlStreamClient
Constructors
constructor
- new DefaultGrahqlStreamClient(socket: Socket, autoRestartStreamsOnReconnect: boolean, autoRestartStreamsOnError: boolean, restartOnErrorDelayInMs: number, autoDisconnectSocket: boolean): DefaultGrahqlStreamClient
-
Parameters
-
-
autoRestartStreamsOnReconnect: boolean
-
autoRestartStreamsOnError: boolean
-
restartOnErrorDelayInMs: number
-
autoDisconnectSocket: boolean
Methods
registerStream
-
Type parameters
Parameters
Returns Promise<Stream>
setApiToken
- setApiToken(apiToken: string): void
unregisterStream
- unregisterStream(id: string): Promise<void>
-
Parameters
Returns Promise<void>