Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support listening to cloud events in knative #130

Open
jthomas opened this issue May 24, 2019 · 1 comment
Open

Support listening to cloud events in knative #130

jthomas opened this issue May 24, 2019 · 1 comment

Comments

@jthomas
Copy link
Member

jthomas commented May 24, 2019

This is a feature request...

Looking at the recent knative integration (#119) - this works great for actions listening to HTTP requests as it proxies between the HTTP request and the expected Web Action parameters/response.

This work could be extended to support listening to Cloud Events on Knative. This would allow those actions to be connected to knative event sources.

Digging around in how Cloud Event receivers work - they use an SDK which just listens on a HTTP port for the incoming events and decodes to an object, e.g.
https://github.com/knative/eventing-sources/blob/master/cmd/event_display/main.go

We can just import the CloudEvents JS SDK to handle the HTTP transport and proxy the events to the handler functions. https://github.com/cloudevents/sdk-javascript

@jthomas
Copy link
Member Author

jthomas commented Jun 26, 2019

CloudEvents JS SDK now has an example of using it to decode events:
https://github.com/cloudevents/sdk-javascript#receiving-events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant