Add method to log sent messages
Send heartbeats and required line endings