Presently, this is the entrypoint into the Deephaven JS API. By creating an instance of this with the server URL and some options, JS applications can run code on the server, and interact with available exportable objects.

Hierarchy

  • IdeConnection

Implements

Constructors

  • creates a new instance, from which console sessions can be made. options are optional.

    Parameters

    • serverUrl: string

      The url used when connecting to the server. Read-only.

    • Optional connectOptions: ConnectOptions

      Optional Object

    • Optional fromJava: boolean

      Optional boolean

    Returns IdeConnection

    Deprecated

Properties

EVENT_DISCONNECT: string
EVENT_RECONNECT: string
EVENT_SHUTDOWN: string
HACK_CONNECTION_FAILURE: string

Deprecated

Methods

  • Listen for events on this object.

    Type Parameters

    • T

      the type of the data that the event will provide

    Parameters

    • name: string

      the name of the event to listen for

    • callback: ((e) => void)

      a function to call when the event occurs

        • (e): void
        • Parameters

          • e: CustomEvent<T>

          Returns void

    Returns (() => void)

    Returns a cleanup function.

      • (): void
      • Listen for events on this object.

        Returns void

        Returns a cleanup function.

  • closes the current connection, releasing any resources on the server or client.

    Returns void

  • Returns Promise<string[]>

  • Parameters

    Returns Promise<any>

  • Type Parameters

    • T

    Parameters

    • eventName: string
    • Optional timeoutInMillis: number

    Returns Promise<CustomEvent<T>>

  • Register a callback function to handle any log messages that are emitted on the server. Returns a function , which can be invoked to remove this log handler. Any log handler registered in this way will receive as many old log messages as are presently available.

    Parameters

    • callback: ((arg0) => void)
        • (arg0): void
        • Parameters

          Returns void

    Returns (() => void)

    io.deephaven.web.shared.fu.JsRunnable

      • (): void
      • Register a callback function to handle any log messages that are emitted on the server. Returns a function , which can be invoked to remove this log handler. Any log handler registered in this way will receive as many old log messages as are presently available.

        Returns void

        io.deephaven.web.shared.fu.JsRunnable

  • Removes an event listener added to this table.

    Type Parameters

    • T

    Parameters

    • name: string
    • callback: ((e) => void)
        • (e): void
        • Parameters

          • e: CustomEvent<T>

          Returns void

    Returns boolean

  • Parameters

    • callback: ((arg0) => void)

    Returns (() => void)

      • (): void
      • Returns void