Handles properly heartbeats sent by client.
Sends heartbeat interval in milliseconds.
Javascript client skips trimmed messages so we send different heartbeat padding