onConnected method

void onConnected()

Callback supplied to socket.connect.

Implementation

void onConnected() {
  socket.handleError((error) => disconnect('SSHTransport.error: $error'));
  socket.handleDone((v) => disconnect('SSHTransport.done: $v'));
  socket.listen(handleRead);
  handleConnected();
}