bq_websocket
bq_websocket copied to clipboard
WebSockets in C
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
Bumps [ws](https://github.com/websockets/ws) from 7.3.1 to 7.4.6. Release notes Sourced from ws's releases. 7.4.6 Bug fixes Fixed a ReDoS vulnerability (00c425ec). A specially crafted value of the Sec-Websocket-Protocol header could be...
Currently `bqws_pt_connect()` blocks on platforms with POSIX sockets, with some refactoring connecting could be made non-blocking. This can be done transparently as the WebSocket API already has a `CONNECTING` state....
Don't attempt to receive a new message if the memory budget doesn't allow for it.. Add a function bqws_try_allocate_msg() that return NULL if there's no budget to allocate a message....
Increase the default limits so users don't hit them accidentally. Shuold probably aim for 10-100MB max memory usage. Also make sure max memory usage is around 2-5x max received message...
The WebSocket specification requires text messages to be validated as UTF-8. Should probably do some unrolling or SSE and NEON to skip through ASCII data as that's probably the most...
Namespace internal names like `ws_*` `hs_` under `bqws_` for better unity build experience..
Rewrite example code to make the samples clearer. It's probably not necessary to include too many features in one example..
There's already `#if defined(BQWS_USE_SSE)` in `mask_apply()`. We should define `BQWS_USE_NEON` where applicable and use NEON intrinsics to do the masking if possible. Defines to check: - `_MSC_VER` branch: `_M_ARM` or...