Magek Framework
    Preparing search index...

    Interface ProviderMessagingLibrary

    interface ProviderMessagingLibrary {
        sendMessage(
            config: MagekConfig,
            connectionID: string,
            data: unknown,
        ): Promise<void>;
    }
    Index

    Methods

    Methods

    • Sends a message to a specific connection.

      Parameters

      • config: MagekConfig

        The Magek configuration object.

      • connectionID: string

        The ID of the connection.

      • data: unknown

        The data to be sent to the connection.

      Returns Promise<void>

      A promise that resolves when the message has been sent successfully.