Skip to main content

Class: NodeSignal

Constructors

constructor

new NodeSignal()

Defined in

NodeSignal.ts:7

Properties

connections

connections: NodeSignalConnection[]

Defined in

NodeSignal.ts:4


destroyed

destroyed: boolean

Defined in

NodeSignal.ts:5

Methods

connect

connect(Callback): NodeSignalConnection

Lets you listen to a specific event

Parameters

NameTypeDescription
CallbackFunctionThe function you want you want to listen to the event with

Returns

NodeSignalConnection

Defined in

NodeSignal.ts:35


destroy

destroy(): void

Destroys the Signal

Returns

void

Defined in

NodeSignal.ts:59


fire

fire(...args): void

Fires the args to the connected events

Parameters

NameTypeDescription
...argsanyThe args you want to fire to the connected events

Returns

void

Defined in

NodeSignal.ts:17


wait

wait(): Promise<unknown>

Lets you wait until a function is called to execute

Returns

Promise<unknown>

Defined in

NodeSignal.ts:46