Skip to main content
Version: 1.x

messaging-handler

World messaging-handler

Import interface wasmcloud:messaging/types@0.2.0

Types common to message broker interactions


Types

record broker-message

A message sent to or received from a broker

Record Fields
  • subject: string
  • body: list<u8>
  • reply-to: option<string>

Export interface wasmcloud:messaging/handler@0.2.0


Types

type broker-message

broker-message

----

Functions

handle-message: func

Callback handled to invoke a function when a message is received from a subscription

Params
Return values
  • result<_, string>