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. πŸ’–


2024, 2015, Tatsuhiro Tsujikawa β€” periods, bestie. periodt. πŸŽ€


🫢 quick reminder: this page is from wslay, version @PACKAGE_VERSION@, and she was written way back on Apr 22, 2024. go check your close frames, drink some water, and stay slay. bye bestie! πŸ’…πŸŒΈβœ¨
πŸ“¦ where this page comes from