Are you an LLM? You can read better optimized documentation at /documentation/api/core/functions/publishEvent.md for this page in Markdown format
ws-asyncapi API / core / publishEvent
Function: publishEvent()
publishEvent(
backplane,codec,topic,type,data,except?):Promise<void>
Defined in: .api-entries/core/index.d.ts:514
Build and publish a server→client Event through a Backplane.
Shared by the adapters and the standalone emitter so the offset-stamping + encoding logic lives in one place. Assigns a recovery offset when the backplane supports it, encodes the Event frame once, then publishes — the backplane fans it out to every node and appends it to the replay log.
Parameters
backplane
codec
Codec
topic
string
type
string
data
unknown
except?
string[]
Returns
Promise<void>