WSLAY_EVENT_GET_STATUS_CODE_SENT(3)

πŸ’– WSLAY_EVENT_GET_STATUS_CODE_SENT(3) πŸ’–

okay bestie, welcome to the wslay manual, section 3 β€” yes the whole thing is a lil library manual and this page is about ONE tiny icon of a function, and honestly? she deserves the spotlight. πŸŽ€


✨ NAME ✨

wslay_event_get_status_code_sent β€” the girl who tells you which status code got sent in a close control frame πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <wslay/wslay.h>

uint16_t wslay_event_get_status_code_sent(wslay_event_context_ptr ctx)

look at her. one include, one line, no drama. iconic behavior. ✨


🌸 DESCRIPTION 🌸

so basically wslay_event_get_status_code_sent() returns the status code that got sent in a close control frame. that's it. that's the whole job. she's a one-task queen and she ate. πŸ‘‘

but wait, there's lore:

  • if no close control frame has been sent, she hands you back WSLAY_CODE_ABNORMAL_CLOSURE. 😭 like, nothing went out, so that's what you get, no cap.
  • if a close control frame has been sent but it has no status code, she gives you WSLAY_CODE_NO_STATUS_RCVD. 🫢

fr fr, two little special cases and that's the entire vibe check. ngl this function is lowkey the chillest one on the whole page.


πŸ’œ SEE ALSO πŸ’œ

  • wslay_event_get_status_code_received() β€” her sister!! the "what came IN" girl to this "what went OUT" girl. main character duo energy, iykyk. πŸ¦‹

🌈 AUTHOR 🌈

Tatsuhiro Tsujikawa β€” the legend, the moment, the originator. we stan. πŸ‘‘


2024, 2015, Tatsuhiro Tsujikawa β€” periodt, that's the copyright, keep it in your heart. πŸ’–


and that's the whole page, bestie!! πŸŽ€ this was pulled from @PACKAGE_VERSION@, dated Apr 22, 20, and it's a WSLAY_EVENT_GET_STATUS_CODE_SENT(3) situation from the wslay manual, mwah, bye!! πŸ’…βœ¨

πŸ“¦ where this page comes from