Remove callback parameter from FrameOutputStream#heartbeat()
Fix heartbeat test
Implementation changes to MemorySocket to get closer to the same behaviour as net.Socket