IStreamResult interface
Defines the result of a streaming hub method.
Methods
subscribe(IStream |
Attaches a IStreamSubscriber, which will be invoked when new items are available from the stream. |
Method Details
subscribe(IStreamSubscriber<T>)
Attaches a IStreamSubscriber, which will be invoked when new items are available from the stream.
function subscribe(subscriber: IStreamSubscriber<T>): ISubscription<T>
Parameters
- subscriber
Returns
A subscription that can be disposed to terminate the stream and stop calling methods on the {@link @microsoft/signalr.IStreamSubscriber}.