Module: lib/protocol/receive

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:

  1. 'messageReceived'
  2. 'metadataVerified'
  3. 'messageEncrypted'
  4. 'messageDecoded'
  5. 'originatorVerified' / 'originatorSkipped'
  6. 'referenceVerified' / 'referenceSkipped'
  7. '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