question

Upvotes
Accepted
33 9 13 31

The behavior of EMA StatusMsg sending

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.

ema-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
79.2k 251 52 74

@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.




icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.