WSLAY_EVENT_GET...S_CODE_RECEIVED(3)
π NAME π
wslay_event_get_status_code_received β bestie, this one hands you the status code that arrived inside a close control frame π
β¨ SYNOPSIS β¨
#include <wslay/wslay.h>
uint16_t wslay_event_get_status_code_received(wslay_event_context_ptr ctx)
π¦ DESCRIPTION π¦
okay so wslay_event_get_status_code_received() returns the status code that was received in a close control frame. that's literally it, that's the whole job π
but here's the tea, because there are two lil plot twists π
- if no close control frame has not been received, it returns
WSLAY_CODE_ABNORMAL_CLOSUREβ so basically you asked about a goodbye letter that never showed up π - if the close control frame you did receive has no status code, it returns
WSLAY_CODE_NO_STATUS_RCVDβ a goodbye with no explanation, it's giving ghosting fr fr π
π SEE ALSO π
wslay_event_get_status_code_sent()β the outgoing twin, the one you sent π
πΈ AUTHOR πΈ
Tatsuhiro Tsujikawa β the icon, the moment, the main character π«Ά
π COPYRIGHT π
2024, 2015, Tatsuhiro Tsujikawa
ngl this page came from thewslaymanual, footer was giving@PACKAGE_VERSION@with a lil Apr 22, 2024 date on it, and the title tried to overlap it because manpages are chaotic like that π anyway ily, go read your close codes bestie πβ¨
π¦ 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