Adding client and server heartbeat monitoring for streams.