Adding client and server heartbeat monitoring for streams.

 how is this change related to your feature?