NNG_WSS_REGISTER(3)

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

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