Added heartbeat to keep websocket alive