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

Allow streaming of CBOR objects #134

Open
jamiec7919 opened this issue Aug 5, 2024 · 1 comment
Open

Allow streaming of CBOR objects #134

jamiec7919 opened this issue Aug 5, 2024 · 1 comment

Comments

@jamiec7919
Copy link

Hi, not sure if this isn't already possible and I've missed it but I'd like to be able continuously perform a ReadAsync and return objects from an indefinite length stream (e.g. a network connection which is just continuously streaming objects)?

Digging in it appears that the main read functions require a fixed length stream, and the multiple reads only allow an array (and supported by my experiments which just hang!).

If it isn't possible currently do you think it is possible, maybe extending the ReadMultiple.. and is it something you'd like in the library? Some other libraries do seem to support this, suggesting CBOR is already framed sufficiently to allow this (so I don't have to add additional framing to the stream).

@mcatanzariti
Copy link
Member

@jamiec7919,

Yes I'm curious to see your proposal!

Cheers,

Michaël

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

2 participants