Streamer: implement on_heartbeat() and on_disconnect()