SSHExecDelegate

public protocol SSHExecDelegate

This protocol enables realtime features for remote command execution

  • Gets called if new data on stdout is available.

    Note

    This is not per line

    Declaration

    Swift

    var onStdout: ((_ data: String) -> Void)? { get set }
  • Gets called if new data on stderr is available.

    Note

    This is not per line

    Declaration

    Swift

    var onStderr: ((_ data: String) -> Void)? { get set }
  • Gets called if the id required for SSH.cancel is available

    Warning

    There is a chance this never gets called

    Declaration

    Swift

    var cancelFunction: ((_ cancelId: String) -> Void)? { get set }