The heart.js module provides client HEART protocol implementation. The size of heart.js is 1152 bytes.
Configuration consists of: 1) current transport; 2) array of available transports; 3) reconnection delay; 4) threshold of maximum reconnects.
Transport contains PING interval. On hearbeat ws.send('PING') is performed.
You may also want to read: bert.js, utf8.js, mq.js, nitro.js, n2o.js.