Add onActiveStateChanged callback to Connection. (dart-lang/http2#13)

The callback is invoked when the connection goes from idle (0 active streams) to active (at least 1 active stream), and when the connection goes from active to idle.

This can be used to implement an idle connection timeout.
6 files changed
tree: 1f02e116ac345ad2f8bdfa90aa4d71fe9677d495
  1. pkgs/