IStreamSubscriber interface
Defines the expected type for a receiver of results streamed by the server.
closed | A boolean that will be set by the IStreamResult when the stream is closed. |
complete() | Called by the framework when the end of the stream is reached. After this method is called, no additional methods on the IStreamSubscriber will be called. |
error(any) | Called by the framework when an error has occurred. After this method is called, no additional methods on the IStreamSubscriber will be called. |
next(T) | Called by the framework when a new item is available. |
A boolean that will be set by the IStreamResult when the stream is closed.
closed?: boolean
Property Value
boolean
Called by the framework when the end of the stream is reached. After this method is called, no additional methods on the IStreamSubscriber will be called.
function complete()
Called by the framework when an error has occurred. After this method is called, no additional methods on the IStreamSubscriber will be called.
function error(err: any)
Parameters
- err
-
any
Called by the framework when a new item is available.
function next(value: T)
Parameters
- value
-
T