attach method

void attach()

A view shows the stream: it gets the open session, or a new one at once.

Implementation

void attach() {
  _views++;
  _closeTimer?.cancel();
  _closeTimer = null;
  _ensureSession();
}