NNG_WS_REGISTER(3)
π 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
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms