注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。
A Subscriber manages a subscription. Only developers sub-classing AbstractProvider will care about this, if they are modifying a low-level feature of how subscriptions operate.

Properties

PropertyTypeDescription
pollingInterval?numberThe frequency (in ms) to poll for events, if polling is used by the subscriber.

For non-polling subscribers, this must return undefined.

Methods

pause()

pause(dropWhilePaused?): void
Called when the subscription should pause. If dropWhilePaused, events that occur while paused should not be emitted Subscriber.resume.

Parameters

ParameterTypeDescription
dropWhilePaused?booleanIf true, events that occur while paused

Returns

void

Source

providers/abstract-provider.ts:233

resume()

resume(): void
Resume a paused subscriber.

Returns

void

Source

providers/abstract-provider.ts:238

start()

start(): void
Called initially when a subscriber is added the first time.

Returns

void

Source

providers/abstract-provider.ts:218

stop()

stop(): void
Called when there are no more subscribers to the event.

Returns

void

Source

providers/abstract-provider.ts:223