Gordian Envelope TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Class Event<T>

    An Event represents a notification or message that doesn't expect a response.

    import { Event, ARID } from '@bcts/envelope';

    // Create a status update event
    const eventId = ARID.new();
    const timestamp = new Date("2024-08-15T13:45:30Z");

    const statusEvent = Event.new("System online", eventId)
    .withNote("Regular status update")
    .withDate(timestamp);

    // Convert to an envelope for transmission
    const envelope = statusEvent.toEnvelope();

    Type Parameters

    Implements

    Index

    Methods