Module: lib/protocol/transmit

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:

  1. 'messageCommitted'
  2. 'metadataVerified'
  3. 'referenceVerified' / 'referenceSkipped'
  4. 'messageEncoded'
  5. 'messageSent'
  6. '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