connect method

  1. @override
Future<TerminalChannel> connect(
  1. String streamPath
)
override

Connects to streamPath (the stream_path of the grant, below the server origin).

Throws when the connection cannot be opened; the controller then shows the session as detached.

Implementation

@override
Future<TerminalChannel> connect(String streamPath) async {
  final error = connectError;
  if (error != null) throw error;
  connected.add(streamPath);
  return host._connect(streamPath);
}