Skip to main content
Version: v1

Interface: pubSubClient

Interfaces.pubSubClient

Methods#

getAllSubscriptions#

â–¸ getAllSubscriptions(): Promise<AllSubscriptions[]>

Returns#

Promise<AllSubscriptions[]>

Defined in#

src/interface/pubSubClient.ts:16


publish#

â–¸ publish<T, P>(topic, message): Promise<string>

Type parameters#

NameType
Textends Topic<T>
Pextends Payload

Parameters#

NameType
topicT
messageP

Returns#

Promise<string>

Defined in#

src/interface/pubSubClient.ts:11


subscribe#

â–¸ subscribe(subscriber): void

Parameters#

NameType
subscribertypeof Subscriber

Returns#

void

Defined in#

src/interface/pubSubClient.ts:15