| [ Web Proxy ] |
| Viewing: https://cloudevents.github.io/sdk-javascript/classes/../interfaces/../modules.html | [Back] [Original] |
Bindings for Kafka transport
Binding for MQTT transport support
Constants representing the CloudEvent specification version
A helper function to create an MQTTMessage object, with "User Properties" as an alias for "headers" and "payload" an alias for body, and a "PUBLISH" record with a "Content Type" property.
the "Content Type" attribute on PUBLISH
the headers and "User Properties"
the message body/payload
a message initialized with the provided attributes
Creates and returns an EmitterFunction using the supplied
TransportFunction. The returned EmitterFunction
will invoke the Binding's binary or structured function
to convert a CloudEvent into a JSON
Message based on the Mode provided, and invoke the
TransportFunction with the Message and any supplied options.
a TransportFunction that can accept an event Message
an EmitterFunction to send events with
httpTransport provides a simple HTTP Transport function, which can send a CloudEvent, encoded as a Message to the endpoint. The returned function can be used with emitterFor() to provide an event emitter, for example:
const emitter = emitterFor(httpTransport("http://example.com")); emitter.emit(myCloudEvent) .then(resp => console.log(resp));
the destination endpoint for the event
a function which can be used to send CloudEvents to sink
Theme OSLightDark
Generated using TypeDoc
| Web Proxy Viewer | New URL | Original Page |
Bindings for HTTP transport support
Binding