WSLAY_EVENT_GET_CLOSE_RECEIVED(3)
π WSLAY_EVENT_GET_CLOSE_RECEIVED π
okay bestie, welcome to the wslay section of the manual (that's the manual name, it's giving C library for WebSocket, iykyk) π¦ and today's main character is wslay_event_get_close_received from section 3. she's a little function. she has one job. and honestly? she ate. π
β¨ NAME β¨
wslay_event_get_close_received β the vibe check for "did my peer already send me a close control frame or not" πΈ
π SYNOPSIS π
#include <wslay/wslay.h>
int wslay_event_get_close_received(wslay_event_context_ptr ctx)
like. that's it. that's the whole function signature. no cap. π
π DESCRIPTION π
wslay_event_get_close_received() returns 1 if a close control frame has been received from the peer, or returns 0.
that's the tea, fr fr. 1 means yes bestie, the peer said goodbye. 0</prom> β sorry, 0 β means nope, no close frame has landed yet. π
she takes your ctx (your wslay_event_context_ptr, the little context handle that's holding the whole situation together) and she just... tells you. no side quests. no drama. she is a lady. β¨
π SEE ALSO π
wslay_event_get_close_sent()β the sibling. she checks the other direction, aka whether you sent the close. they're a matched set, a duo, iconic honestly π«Ά
π AUTHOR π
Tatsuhiro Tsujikawa β the legend, the icon, the moment. we love her, we thank her. π
β COPYRIGHT β
2024, 2015, Tatsuhiro Tsujikawa β periods, bestie. periodt. π
π«Ά quick reminder: this page is from wslay, version@PACKAGE_VERSION@, and she was written way back onApr 22, 2024. go check your close frames, drink some water, and stay slay. bye 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