File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,8 @@ const {
39
39
Receiver
40
40
} = require (" cloudevents" );
41
41
42
- // Create a receiver to accept events over HTTP
43
- const receiver = new Receiver ();
44
-
45
42
// body and headers come from an incoming HTTP request, e.g. express.js
46
- const receivedEvent = receiver .accept (req .headers , req .body );
43
+ const receivedEvent = Receiver .accept (req .headers , req .body );
47
44
console .log (receivedEvent);
48
45
```
49
46
@@ -157,4 +154,4 @@ We love contributions from the community! Please check the
157
154
for information on how to get involved.
158
155
159
156
[ v1spec ] : https://github.com/cloudevents/spec/tree/v1.0
160
- [ v103pec ] : https://github.com/cloudevents/spec/tree/v0.3
157
+ [ v103pec ] : https://github.com/cloudevents/spec/tree/v0.3
You can’t perform that action at this time.
0 commit comments