Reporting Heartbeat Information
In addition to the keepalive information, the WebSocket protocol used by MindEdge OM has the default ping and pong heartbeat frame mechanisms. The client periodically sends a control frame whose Opcode value in the frame header is 9. After receiving the message, the server makes a response to the control frame to determine whether the connection is normal. The payload data in the message is 4-byte random data, which is used to determine whether ping and pong messages are paired.
Message instance
{
b"\xa2\x85\x91\x07"
}
Result returned
{
b"\xa2\x85\x91\x07"
}
Parent topic: Upstream Message Interfaces