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

Configurable wsMessageSizeLimit seems that was merged but how to configure ? #30960

Open
journeytosilius opened this issue Dec 26, 2024 · 1 comment

Comments

@journeytosilius
Copy link

I hit this issue #23754 myself and it seems that a fix to make this parameter configurable was merged, but I can't find any documentation or options in t he geth binary to configure it. Is there any documentation on this ?

@MariusVanDerWijden
Copy link
Member

MariusVanDerWijden commented Dec 30, 2024

Here's some sample code to set it on the client side:

opts := []ClientOption{}
opts = append(opts, WithWebsocketMessageSizeLimit(limit))
			
client, err := DialOptions(context.Background(), wsURL, opts...)

This is only on the client side, iiuc you want to change it on the server side?
For that you need to specify --rpc.batch-response-max-size value (default: 25000000)

Please let me know if that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants