Experimental
channel path; <namespace>/<channel>
JSON-serializable value or an array of values
Optional
options: EventsOptionsrequest overrides: authMode
, authToken
void on success
await events.post("default/channel", { some: "event" })
// event batching
await events.post("default/channel", [{ some: "event" }, { some: "event2" }])
// authMode override
await events.post("default/channel", { some: "event" }, { authMode: "userPool" })
on error
API may change in future versions
Publish events to a channel via HTTP request