Options
All
  • Public
  • Public/Protected
  • All
Menu

Module TerminalSession

The namespace for ISession statics.

Index

Type aliases

MessageType

MessageType: "stdout" | "disconnect" | "set_size" | "stdin"

Valid message types for the terminal.

Functions

connectTo

isAvailable

  • isAvailable(): boolean

listRunning

  • List the running terminal sessions.

    Parameters

    • Optional settings: ISettings

      The server settings to use.

    Returns Promise<IModel[]>

    A promise that resolves with the list of running session models.

shutdown

  • shutdown(name: string, settings?: ISettings): Promise<void>
  • Shut down a terminal session by name.

    Parameters

    • name: string

      The name of the target session.

    • Optional settings: ISettings

      The server settings to use.

    Returns Promise<void>

    A promise that resolves when the session is shut down.

shutdownAll

  • shutdownAll(settings?: ISettings): Promise<void>
  • Shut down all terminal sessions.

    Parameters

    Returns Promise<void>

    A promise that resolves when all of the sessions are shut down.

startNew

  • Start a new terminal session.

    Parameters

    • Optional options: IOptions

      The session options to use.

    Returns Promise<ISession>

    A promise that resolves with the session instance.

Generated using TypeDoc