Event handler module
Members
-
inner,constantemitter
-
The event emitter singleton
Methods
-
innerapiError(operation, error)
infra/eventHandler/index.js, line 97 -
Emits a
ApiErrorevent with metadata:{ operation: string, error: string }Name Type Description operationstring The API operation that resulted in error
errornumber -
innerapiOutage(satelliteGatewayName, timestamp, source)
infra/eventHandler/index.js, line 114 -
Emits a
ApiOutageevent with metadata:{ satelliteGatewayName: string, timestamp: string, verbose: string }Name Type Description satelliteGatewayNamestring The gateway name
timestampstring The ISO datetime of the outage
sourcestring The API operation that was non-responsive
-
innerapiRecovery(satelliteGatewayName, timestamp, source)
infra/eventHandler/index.js, line 132 -
Emits a
ApiRecoveryevent with metadata{ satelliteGatewayName: string, timestamp: string, verbose: string }Name Type Description satelliteGatewayNamestring The gateway name
timestampstring The ISO datetime of the outage
sourcestring The API operation that was non-responsive
-
innerforwardMessageStateChange(messageId, newState, reason, stateTimeUtc, mobileId)
infra/eventHandler/index.js, line 59 -
Emits a
ForwardMessageStateChangeevent with metadata:{ messageId: number, mobileId: (string|undefined), newState: string, reason: string, verbose: string }mobileId may not be known if the message was submitted by another client; ideally other client submissions trigger a different event
Name Type Description messageIdnumber Unique forward message ID from the Status
newStatestring The new state human-readable
reasonstring The reason for the new state, human-readable
stateTimeUtcstring The time of the state change
mobileIdstring optional The mobile ID if known
-
innernewForwardMessage(message)
infra/eventHandler/index.js, line 35 -
Emits a
NewForwardMessageevent with MessageForward model metadata:Name Type Description messageObject Uses MessageForward model
-
innernewMobile(mobile)
infra/eventHandler/index.js, line 18 -
Emits a
NewMobileevent with Mobile model metadata.Name Type Description mobileObject Uses Mobile model
-
innernewReturnMessage(message)
infra/eventHandler/index.js, line 26 -
Emits a
NewReturnMessageevent with MessageReturn model metadata.Name Type Description messageObject Uses MessageReturn model
-
innerotherClientForwardSubmission(messageId, mailboxId)
infra/eventHandler/index.js, line 80 -
Emits a
OtherClientForwardSubmissionevent with metadata to be used for message retrieval:{ messageId: number, mailboxId: (number|string), verbose: string }Name Type Description messageIdnumber Unique forward message ID from the Status
mailboxIdstring | number Unique mailbox ID