How to use this component
Simply drop the block on your screen and fill in the parameters:
You can then handle the events bubbled up from the block:
The message structure:
Take a look at the demo to see an implementation example.
On the demo the events look like this:
event: message
id: 1634920174825
retry: 500
data: "Fri, 22 Oct 2021 16:29:34 GMT"
event: est
id: 1634920174827
data: "10/22/2021, 12:29:34 PM EDT"
event: pdt
data: "10/22/2021, 9:29:34 AM PDT"
"Event: message" or "event: " represent the same concept. If you do not specify what to subscribe you will get these types of messages, i.e., messages without an event or with an event set to "message".
You can subscribe multiple events, for example "est" or "pdt" or both on the examples.
No matter what your subscribe you'll always get the "message" or not specified type events.