Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ForeignHandler

A handler for capturing API messages from other sessions that should be rendered in a given parent. A namespace for ForeignHandler statics.

Hierarchy

  • ForeignHandler

Implements

  • IDisposable

Index

Constructors

constructor

Properties

Private _enabled

_enabled: boolean = false

Private _isDisposed

_isDisposed: boolean = false

Private _parent

_parent: IReceiver

session

session: IClientSession

The client session used by the foreign handler.

Accessors

enabled

  • get enabled(): boolean
  • set enabled(value: boolean): void
  • Set whether the handler is able to inject foreign cells into a console.

    Returns boolean

  • Set whether the handler is able to inject foreign cells into a console.

    Parameters

    • value: boolean

    Returns void

isDisposed

  • get isDisposed(): boolean
  • Test whether the handler is disposed.

    Returns boolean

parent

Methods

Private _newCell

  • _newCell(parentMsgId: string): CodeCell
  • Create a new code cell for an input originated from a foreign session.

    Parameters

    • parentMsgId: string

    Returns CodeCell

dispose

  • dispose(): void
  • Dispose the resources held by the handler.

    Returns void

Protected onIOPubMessage

  • onIOPubMessage(sender: IClientSession, msg: IIOPubMessage): boolean
  • Handler IOPub messages.

    Parameters

    • sender: IClientSession
    • msg: IIOPubMessage

    Returns boolean

    true if the message resulted in a new cell injection or a previously injected cell being updated and false for all other messages.

Generated using TypeDoc