1.3.4 Echo / Heartbeat Function

"Ping" messages on websocket protocol level sent to the websocket are answered with a "Pong" message. This can be used to implement a heartbeat mechanism at protocol level.

At application level this is possible as well. The backend's websocket implementation echoes all text messages received from the front end back to it. It is recommended to use Message data objects for this and setting type to a value not used by the backend.