Skip to content

@acala-network/chopsticks-coreDocs


@acala-network/chopsticks-core / SubscriptionManager

Interface: SubscriptionManager

Properties

subscribe()

subscribe: (method, subid, onCancel?) => (data) => void

Parameters

method: string

subid: string

onCancel?

Returns

Function

Parameters

data: any

Returns

void

Defined in

packages/core/src/rpc/shared.ts:37


unsubscribe()

unsubscribe: (subid) => void

Parameters

subid: string

Returns

void

Defined in

packages/core/src/rpc/shared.ts:38