case class LwcHeartbeat(timestamp: Long, step: Long) extends JsonSupport
Heartbeat message to indicate the time according to the server side. The eval client always adjusts to the timestamps of the data that is flowing through it. These messages can be used by the server side to ensure that there will always be at least one message for a given step size that is flowing through to the client so it will close out and evaluate a given time interval.
Value parameters
step
Step size for this heartbeat message. The server will typically send one heartbeat foreach step size used in a subscription.
timestamp
Current time aligned to the last completed step boundary.
Encode this object as JSON. By default it will just use Json.encode. This method can be overridden to customize the format or to provide a more performance implementation. When using a custom format, the subclass should also override hasCustomEncoding to return true. This will cause Json.encode to use the custom implementation rather than the default serializer for the type.
Encode this object as JSON. By default it will just use Json.encode. This method can be overridden to customize the format or to provide a more performance implementation. When using a custom format, the subclass should also override hasCustomEncoding to return true. This will cause Json.encode to use the custom implementation rather than the default serializer for the type.