Server sent heartbeat setup

Closes #144