Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@ const {
Receiver
} = require("cloudevents");

// Create a receiver to accept events over HTTP
const receiver = new Receiver();

// body and headers come from an incoming HTTP request, e.g. express.js
const receivedEvent = receiver.accept(req.headers, req.body);
const receivedEvent = Receiver.accept(req.headers, req.body);
console.log(receivedEvent);
```

Expand Down Expand Up @@ -157,4 +154,4 @@ We love contributions from the community! Please check the
for information on how to get involved.

[v1spec]: https://github.com/cloudevents/spec/tree/v1.0
[v103pec]: https://github.com/cloudevents/spec/tree/v0.3
[v103pec]: https://github.com/cloudevents/spec/tree/v0.3