Skip to main content
Version: 11.x

Type Alias: SubscriptionOwner

SubscriptionOwner = object

Defined in: src/channel/ws/subscription.ts:13

The minimum a Subscription needs from whatever channel created it.

Declared structurally so both WebSocketChannel and SubscriptionChannel qualify without either of them being named here — which is what keeps subscription.ts from depending on the classes that depend on it.

Methods

unsubscribe()

unsubscribe(subscriptionId): Promise<boolean>

Defined in: src/channel/ws/subscription.ts:14

Parameters

subscriptionId

string

Returns

Promise<boolean>


removeSubscription()

removeSubscription(subscriptionId): void

Defined in: src/channel/ws/subscription.ts:15

Parameters

subscriptionId

string

Returns

void