interface MessageEventTarget<T> {
    onmessage: null | ((this, ev) => any);
    onmessageerror: null | ((this, ev) => any);
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

onmessage: null | ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      • this: T
      • ev: MessageEvent<any>

      Returns any

onmessageerror: null | ((this, ev) => any)

Type declaration

    • (this, ev): any
    • Parameters

      • this: T
      • ev: MessageEvent<any>

      Returns any

Methods