interface Listener {
    addEventListener<K>(type, listener, options?): void;
    close(): Promise<void>;
    dispatchEvent(event): boolean;
    dispatchEvent(event): boolean;
    getAddrs(): Multiaddr[];
    listen(multiaddr): Promise<void>;
    listenerCount(type): number;
    removeEventListener<K>(type, listener?, options?): void;
    removeEventListener(type, listener?, options?): void;
    safeDispatchEvent<Detail>(type, detail): boolean;
}

Hierarchy (view full)

Methods

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    MDN Reference

    Parameters

    Returns boolean

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    MDN Reference

    Parameters

    Returns boolean