Stratal API Reference
    Preparing search index...

    Class QueueSender

    Queue Sender

    Implementation of IQueueSender bound to a specific queue name. Created by QueueRegistry for each registered queue.

    Automatically enriches messages with:

    • id: UUID generated via crypto.randomUUID()
    • timestamp: Current time in milliseconds
    • metadata.locale: Current locale from I18n context
    // Created by QueueRegistry, not directly instantiated
    const sender = registry.getQueue('notifications-queue')

    await sender.dispatch({
    type: 'email.send',
    payload: { to: 'user@example.com', subject: 'Hello' }
    })

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods