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

Help request: How can I increase websocket read limit? #69

Closed
UedaTakeyuki opened this issue Dec 22, 2021 · 2 comments
Closed

Help request: How can I increase websocket read limit? #69

UedaTakeyuki opened this issue Dec 22, 2021 · 2 comments

Comments

@UedaTakeyuki
Copy link

I can't receive big (about 1Kbyte) data with the following error:

websocket: read limit exceeded

How can I configure my Melody to inclease this limit? Thank you for your help!

@FZambia
Copy link

FZambia commented Dec 22, 2021

@UedaTakeyuki hi, see https://github.com/olahol/melody/blob/master/session.go#L109 - so you can increase read limit with MaxMessageSize (512 byte by default).

Please note that this package seems unmaintained for a long time. My advice – switch to sth else if you are just starting your project. Or be ready to fork/learn the internals.

@UedaTakeyuki
Copy link
Author

Thank you FZambia!

I can success to read big data.

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