per warmcat/libwebsockets#1255
https://libwebsockets.org/lws-api-doc-main/html/md_READMEs_README_8coding.html
The receive buffer size in lws_protocols could be increased or the user parameter could be used per the link above. Neither of these approaches is very attractive in terms of preserving the general structure of the library.
In addition, the wait() method calls lws_service w/ a timeout that has been obsoleted blocking until a connection is made.