Options
All
  • Public
  • Public/Protected
  • All
Menu

Message bus to handle data broadcast

Hierarchy

  • MessageBus

Index

Constructors

  • Constructor to create singleton instance of CXoneLeaderElector

    Returns MessageBus

Properties

onRequestMessage: Subject<Message>
onResponseMessage: Subject<Message>
requestChannel: BroadcastChannel<any>
responseChannel: BroadcastChannel<any>
singleton: MessageBus

Accessors

  • Static method to control the access of the singleton instance.

    example
    const leaderElection = CXoneLeaderElector.instance;
    

    Returns MessageBus

Methods

  • Posts data to request data channel

    example
    CXoneLeaderElector.instance.postRequest(msg);
    

    Parameters

    Returns void

  • Posts data to response data channel

    example
    CXoneLeaderElector.instance.postResponse(msg);
    

    Parameters

    Returns void

Generated using TypeDoc