RemoteSession constructor

RemoteSession(
  1. Channel _channel,
  2. SessionMode mode
)

Creates a remote-session handle over the given channel.

Implementation

RemoteSession(this._channel, this.mode) {
  _controlSub = _channel.control.listen(_onControl);
}