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 for CBOR as event data #101

Open
jasny opened this issue Oct 21, 2022 · 0 comments
Open

Support for CBOR as event data #101

jasny opened this issue Oct 21, 2022 · 0 comments

Comments

@jasny
Copy link
Member

jasny commented Oct 21, 2022

Support CBOR as alternative to JSON for event data. Also support CBOR for parsedData.

The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation

const event = new Event({foo: 'bar'}, 'application/cbor');
console.log(event.parsedData); // {foo: 'bar'}

https://webconcepts.info/specs/IETF/RFC/7049
https://www.npmjs.com/package/cbor-x

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