1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00

docs: compressed remaining_pack_payload case

https://github.com/warmcat/libwebsockets/issues/2683
This commit is contained in:
Andy Green 2022-09-18 08:28:56 +01:00
parent c2d7e33eeb
commit 34ef70ab00

View file

@ -763,8 +763,10 @@ lws_rx_flow_allow_all_protocol(const struct lws_context *context,
* ws, it is legal to not know the length of the message before it completes.
*
* Additionally if the message is sent via the negotiated permessage-deflate
* extension, this number only tells the amount of **compressed** data left to
* be read, since that is the only information available at the ws layer.
* extension, zero is always reported. You should use lws_is_final_fragment()
* to find out if you have completed the message... in compressed case, it holds
* back reporting the final fragment until it's also the final decompressed
* block issued.
*/
LWS_VISIBLE LWS_EXTERN size_t
lws_remaining_packet_payload(struct lws *wsi);