Module defining the message transmit and receive events chain
- Source:
- Tutorials:
Methods
(inner) init(callback)
Initialises message receive event chain by binding events to listeners/handlers This ensures the following RX events are executed in the right order:
- 'messageReceived'
- 'metadataVerified'
- 'messageEncrypted'
- 'messageDecoded'
- 'originatorVerified' / 'originatorSkipped'
- 'referenceVerified' / 'referenceSkipped'
- 'messageProcessed' When an error occurs, the 'error' event is emitted.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | function to be called upon completion |
- Source:
Fires:
- module:lib/protocol/events.rxEvent:initialised