The interface for the event bus front-end.

interface IManager {
    isDisposed: boolean;
    serverSettings: ServerConnection.ISettings;
    stream: Stream;
    dispose(): void;
    emit(event): Promise<void>;
}

Hierarchy

Implemented by

Properties

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

serverSettings: ServerConnection.ISettings

The server settings used to make API requests.

stream: Stream

An event stream that emits and yields each new event.

Methods

  • Dispose of the resources held by the object.

    Notes

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void