Skip to content

ChildListener

Defined in: types.ts:1145

What a parent learns from a child’s events, with the client already resolved by the adapter. client is the parent’s client object when the child is a BehavioralFsm and the event is one of the seven built-in names (or nohandler); it is undefined for an Fsm child, whose events carry no client, and for every custom event, whose payload is opaque.

onEvent(eventName, data, client): void

Defined in: types.ts:1147

Any child event other than nohandler, built-in or custom.

string

unknown

object | undefined

void


onUnhandled(inputName, args, client): void

Defined in: types.ts:1149

The child emitted nohandler: it had no handler for inputName.

string

unknown[]

object | undefined

void