Flocc
    Preparing search index...

    Interface FloccEvent<T>

    Event object passed to event handlers.

    0.6.0

    interface FloccEvent<T = any> {
        data: T;
        propagationStopped: boolean;
        source: Agent | Environment;
        time: number;
        type: string;
        stopPropagation(): void;
    }

    Type Parameters

    • T = any
    Index

    Properties

    data: T

    Event payload data

    propagationStopped: boolean

    Whether propagation has been stopped

    source: Agent | Environment

    The agent or environment that emitted this event

    time: number

    Environment time when the event was emitted

    type: string

    Event type identifier

    Methods

    • Stop this event from reaching subsequent handlers

      Returns void