A simple complete heart-beat solution for node sockets.