Heartbeat
RMQ HeartBeat message (type 32)
This is an actual data message sent by LSports through the RabbitMQ feed every 5 seconds. Its purpose is to indicate that the data feed is alive and operational.
The message has a specific structure, typically containing only a header with fields like Type (set to 32), MsgGuid, and ServerTimestamp.
You can use the presence (or absence) of these messages to monitor the health of your data feed and take action if they stop arriving.
Note: Under normal conditions, heartbeat messages carry no body (header only). A body is added only when a feed interruption is in effect — see Feed Interruption Indication below.
{
"Header": {
"Type": 32,
"MsgGuid": "ef3a5979-46ef-4f94-ae60-90c063ab3440",
"ServerTimestamp": 1516013721
}
}Feed Interruption Indication (FeedInterrupted)
The heartbeat can also tell you when LSports has flagged an active feed interruption for your package.
When an interruption is in effect, the heartbeat message includes an additional Body with a FeedInterrupted array, currently containing 1. Outside of an active interruption, the heartbeat keeps its normal header-only form — no Body is sent at all.
{
"Header": {
"Type": 32,
"MsgGuid": "ef3a5979-46ef-4f94-ae60-90c063ab3440",
"ServerTimestamp": 1516013721
},
"Body": {
"FeedInterrupted": [1]
}
}This is an indication only. LSports does not automatically suspend markets or take any other action when this flag is set. Treat it as a signal to check with LSports on the status of your feed.
Last updated
Was this helpful?