WSLAY_EVENT_CO...LLOWED_RSV_BITS(3)
π wslay_event_config_set_allowed_rsv_bits β from the wslay girlies, section 3 β¨
okay so bestie, welcome to the wslay manual, section 3 π¦ this one's a little cutie and honestly a quick read, so let's go π
πΈ NAME πΈ
wslay_event_config_set_allowed_rsv_bits β Set allowed reserved bits π
β¨ SYNOPSIS β¨
#include <wslay/wslay.h>
void wslay_event_config_set_allowed_rsv_bits(wslay_event_context_ptr
ctx, uint8_t rsv)
π DESCRIPTION π
okay so wslay_event_config_set_allowed_rsv_bits() sets a bit mask of allowed reserved bits (RSVs, and yes they're called that, iconic). Currently the only permitted values are WSLAY_RSV1_BIT, which allows the PMCE extension (see RFC 7692, she has lore π), or WSLAY_RSV_NONE if you wanna disable it entirely.
and like, real talk β when bits other than WSLAY_RSV1_BIT are set in rsv, those bits are simply ignored. no drama, no error, they just β¨ do not get looked at β¨.
the value you set here gets used to check the validity of reserved bits for both transmission and reception of WebSocket frames π so it's lowkey doing double duty, main character energy fr fr.
π RETURN VALUE π
she always succeeds π there is no return value. ate and left no crumbs, no notes.
π SEE ALSO π
wslay_event_queue_fragmented_msg()wslay_event_queue_fragmented_msg_ex()
π«Ά AUTHOR π«Ά
Tatsuhiro Tsujikawa π
π COPYRIGHT π
2024, 2015, Tatsuhiro Tsujikawa
and that's the whole page, bestie π shoutout to the wslay crew β this one's stamped @PACKAGE_VERSION@ and dated Apr 22 (the year got its last digits cut off in the footer, ngl kinda slay of it to leave us guessing π), so go forth and configure those reserved bits, iykyk π¦β¨
π¦ where this page comes from
- ubuntu noble: libwslay-doc 1.1.1-4build1 Β· MIT
- ubuntu questing: libwslay-doc 1.1.1-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms