IStreamResult interface

Defines the result of a streaming hub method.

Methods

subscribe(IStreamSubscriber<T>)

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

IStreamSubscriber<T>

Returns

A subscription that can be disposed to terminate the stream and stop calling methods on the {@link @microsoft/signalr.IStreamSubscriber}.