nng_ws_register3
Register websocket transport
Usage
#include <nng/transport/websocket/ws.h> int nng_ws_register(void);
Overview
The nng_ws_register() function registers the ws transport for use.
Note
This function is deprecated, and may be removed from a future release. It is no longer necessary to explicitly register transports.
Return values
This function returns 0 on success, and non-zero otherwise.
Errors
NNG_ENOMEM
Insufficient memory is available.
NNG_ENOTSUP
The transport is not supported.