NNG_WS_REGISTER(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

πŸ’– NNG_WS_REGISTER(3) πŸ’–

okay bestie, so this is a page straight out of the NNG Reference Manual β€” we're talking nng_ws_register β€” and yes it's about the WebSocket transport, and yes it's iconic in a ✨legacy✨ kinda way. Let's get into it 🫢


🌸 NAME 🌸

nng_ws_register β€” the girl who registers the WebSocket transport πŸ’…


✨ SYNOPSIS ✨

#include <nng/transport/websocket/ws.h>

int nng_ws_register(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

So <cyan>nng_ws_register()</cyan> does exactly one thing and it does it with main character energy: it registers the ws transport so you can actually, y'know, use it. That's it. That's the whole job. πŸ’–

Note πŸ“’ Bestie. Listen. This function is deprecated, and it may be removed from a future release. The way that you literally no longer need to explicitly register transports anymore?? Yeah. It's giving unnecessary. It's still here for now, but don't build your whole personality around it. 😭

🌈 RETURN VALUES 🌈

  • <green>0</green> when it works β€” slay, success, we love to see it ✨
  • non-zero otherwise β€” not slay, something went sideways πŸ’€

πŸŽ€ ERRORS πŸŽ€

  • NNG_ENOMEM β€” there's not enough memory available. The vibe check failed at the allocator level, ngl. 😭
  • NNG_ENOTSUP β€” the transport is not supported. It's giving "we don't do that here." πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie β€” no cap, you now know everything this manpage has to say 🫢

mwah πŸ’‹ this was from the NNG Reference Manual, dated 2026-06-30. go forth and register responsibly (or, like, don't, since it's deprecated lol) πŸŽ€βœ¨

πŸ“¦ where this page comes from