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 for per-instance extensions #93

Open
tsmaeder opened this issue Dec 1, 2022 · 1 comment
Open

Allow for per-instance extensions #93

tsmaeder opened this issue Dec 1, 2022 · 1 comment

Comments

@tsmaeder
Copy link

tsmaeder commented Dec 1, 2022

We use msgpackr in multiple places to encode/decode rpc calls. There are a couple of objects that need custom handling before encoding/decoding. We use Extensions to handle those type of objects. However the types of objects that need special handling is distinct per connection. It would be great if we could register Extensions per Packr/Unpackr instance, so that they apply only for a given connection, not everywhere. Feel free to tell me to RTFM if I'm just not understanding how I can do this.

@kriszyp
Copy link
Owner

kriszyp commented Jan 24, 2023

This is a very reasonable request, but will need to put some thought into how best to implement.

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