Module defining the message transmit and receive events chain
- Source:
- Tutorials:
Methods
(inner) init(callback)
Initialises message transmit event chain by binding events to listeners/handlers. This ensures the following TX events are executed in the right order:
- 'messageCommitted'
- 'metadataVerified'
- 'referenceVerified' / 'referenceSkipped'
- 'messageEncoded'
- 'messageSent'
- '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.txEvent:initialised