Function makeCallKey

  • Parameters

    • prefix: string

      key prefix (empty for direct methods, call:{refId}: for connection-scoped calls)

    • method: string

      method name

    • args: unknown[]

      raw call arguments

    Returns string

    Description

    Builds a deterministic call key used for snapshot lookup. Format: prefix + method + ':' + stableHash(normalizedArgs). Args are normalized before hashing: ref-registered values become @refId, the execution-context transaction option is dropped, and runtime-generated Date values (timestamps) are replaced by a constant marker, so the same logical call hashes identically across record and replay runs.