Skip to main content

Class: Notificator

@pvm/notifications.Notificator

Constructors

constructor

• new Notificator(config)

Parameters

NameType
configConfig

Defined in

packages/pvm-notifications/lib/notificator.ts:16

Properties

config

• Private config: Config

Defined in

packages/pvm-notifications/lib/notificator.ts:14


messengers

• Private messengers: MessengerClients

Defined in

packages/pvm-notifications/lib/notificator.ts:13

Methods

sendMessage

â–¸ sendMessage(message, opts?): Promise<void>

Parameters

NameType
messageMessage
optsObject
opts.target?string

Returns

Promise<void>

Defined in

packages/pvm-notifications/lib/notificator.ts:45


create

â–¸ Static create(cwd?): Promise<Notificator>

Parameters

NameType
cwdstring

Returns

Promise<Notificator>

Defined in

packages/pvm-notifications/lib/notificator.ts:39


getClientConfig

â–¸ Static getClientConfig(clientName, config): MessengerClientConfig

Parameters

NameType
clientNamestring
configConfig

Returns

MessengerClientConfig

Defined in

packages/pvm-notifications/lib/notificator.ts:29