Skip to main content
Version: Current

LoopbackBroker

@rotorsoft/act-root


@rotorsoft/act-root / act-notify / LoopbackBroker

Class: LoopbackBroker

Defined in: libs/act-notify/src/loopback.ts:13

Synchronous in-process fan-out to every subscriber.

Implementsโ€‹

Constructorsโ€‹

Constructorโ€‹

new LoopbackBroker(): LoopbackBroker

Returnsโ€‹

LoopbackBroker

Accessorsโ€‹

sizeโ€‹

Get Signatureโ€‹

get size(): number

Defined in: libs/act-notify/src/loopback.ts:28

Subscribers currently attached โ€” handy in tests.

Returnsโ€‹

number

Methodsโ€‹

publish()โ€‹

publish(message): void

Defined in: libs/act-notify/src/loopback.ts:16

Parametersโ€‹

messageโ€‹

BrokerMessage

Returnsโ€‹

void

Implementation ofโ€‹

Broker.publish


subscribe()โ€‹

subscribe(handler): BrokerDisposer

Defined in: libs/act-notify/src/loopback.ts:20

Parametersโ€‹

handlerโ€‹

(message) => void

Returnsโ€‹

BrokerDisposer

Implementation ofโ€‹

Broker.subscribe