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
Use a buffer pool #856
Comments
Hi, somthing like this is possible via the the |
Thank you, I didn't realize this was possible! |
Sorry, I should've clarified, I'm receiving messages, not sending. |
for the ws header the lib uses a static buffer. arduinoWebSockets/src/WebSockets.h Line 327 in 30d5e13
but for the payload its malloc. arduinoWebSockets/src/WebSockets.cpp Lines 453 to 462 in 30d5e13
arduinoWebSockets/src/WebSockets.cpp Lines 522 to 524 in 30d5e13
you can modify this in code. |
I'm consistently sending large messages of the same size. It would be much more efficient to be able to reuse the payload buffer instead of a new one being malloc'd each time.
The text was updated successfully, but these errors were encountered: