Working on client and server side, heart beat will be required to detect a loss of connection.