NNG_WSS_REGISTER(3)
π NNG_WSS_REGISTER(3) π
okay bestie, so this one lives in the NNG Reference Manual, and it's literally the glow-up guide for nng_wss_register β the function that gets the WebSocket secure transport on the guest list β¨
πΈ NAME πΈ
nng_wss_register β register the WebSocket secure transport π¦
β¨ SYNOPSIS β¨
#include <nng/transport/websocket/ws.h>
int nng_wss_register(void);
π DESCRIPTION π
so the way this works is nng_wss_register() registers the wss transport so you can actually use it. that's it. that's the whole job. iconic behaviour, honestly π
β οΈ heads up, bestie β this function is DEPRECATED, and it might get removed in a future release. it is no longer necessary to explicitly register transports. so like... it still works, but the universe has moved on π
π RETURN VALUES π
it returns 0 on success, and non-zero otherwise. no cap. fr fr.
π ERRORS π
NNG_ENOMEMβ insufficient memory is available. your machine is going through it, not her fault πNNG_ENOTSUPβ the transport is not supported. it's giving "not on the menu" π
π SEE ALSO π
that's the whole page, bestie π«Ά go forth and register your transports (or don't β she's deprecated anyway π ).
this drop is from the NNG Reference Manual, dated 2026-06-30. mwah, love u, bye πβ
π¦ 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