Skip to content

Documentation / @super-line/client / Subscription

Interface: Subscription

Defined in: index.ts:41

A topic subscription handle returned by client.subscribe.

Properties

ready

readonly ready: Promise<void>

Defined in: index.ts:43

Resolves when the server acknowledges the subscribe; rejects if denied or disconnected.

Methods

unsubscribe()

unsubscribe(): void

Defined in: index.ts:45

Stop receiving the topic and tell the server to unsubscribe.

Returns

void

Released under the MIT License.