You're viewing archived documentation for @imqueue/rpc v2.1.0. APIs may differ from the current release. View the latest version ↗

currentMetadata() function

Returns the metadata of the in-flight IMQ request for the current async execution, if any. Returns undefined outside of a runWithRequest() scope. The transport carries metadata as an opaque bag; callers interpret its fields.

{IMQMetadata | undefined}

Signature:

export declare function currentMetadata(): IMQMetadata | undefined;

Returns:

IMQMetadata | undefined