-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Enabling compression? #562
Comments
We do this server-side, which I think is right? builder.Services.Configure<MagicOnionOptions>(options =>
{
// messagepack options for magiconion-managed serialization
options.SerializerOptions = MessagePackSerializerOptions.Standard
.WithCompression(MessagePackCompression.Lz4BlockArray)
.WithResolver(MessagePackX.GetResolver());
options.IsReturnExceptionStackTraceInErrorDetail = true;
}); (That |
Thankyou - that looks right! |
Alas, I need to re-open this as the method has changed, I've tried a few variations, but they're no longer working. Does anyone know the current correct method for this? |
And this is what is needed now.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi - any pointers on where to enable MessagePack compression in MagicOnion?
The serializerOptions: MessagePackSerializerOptions.Standard.WithCompression(MessagePackCompression.Lz4BlockArray) in the client-side requests to StreamingHubClient.ConnectAsync makes sense, but I presume this needs to be enabled in the server somehow as well?
Thankyou! (great library btw)
The text was updated successfully, but these errors were encountered: