Skip to main content

@dapr/publish

Description​

MessagingSource code

TODO

Options​

resource​

resource *​ResourceRef

The name of the Dapr client resource.

pubsub​

pubsub *​string

Name of pubsub to invoke.

topic​

topic *​string

Topic is the name of the topic to publish to.

codec​

codec *​CodecRef

The configured codec to use for encoding the message.

codecArgs​

codecArgs​any[]

The arguments for the codec, if any.

key​

key​string (Value expression)

optional value to use for the message key (is supported).

data​

data​string (Data expression)

The input bindings sent.

metadata​

metadata​string (Data expression)

The input binding metadata.

propogateTracing​

propogateTracing *​bool

Enables/disables propogating the distributed tracing context (e.g. W3C TraceContext standard).