The behavior of EMA StatusMsg sending

Options

For the StatusMsg, looks like by default, it will only be sent when there's an abnormal case raised, e.g., the disconnection. Is that possible to configure it to also be sent when the abnormal situation cleared, i.e., an 'OK' status message will be sent then.

Tagged:

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @Frederic

    Both RefreshMsg and StatusMsg have a state attribute that conveys stream and data state information. Therefore, the RefreshMsg can be used to indicate the stream state and data state.

    Moreover, the RefreshMsg can contain the data in its payload so it is convenient to send a refresh message which contains both state and data when the abnormal situation is cleared.

    As I know, there is no configuration to control it.

    The application must be able to handle the state attribute in both RefreshMsg and StatusMsg.