give heartbeat parameter to the socket class