This documentation is for version v1.3.2 of NNG, but the latest released version is v1.7.3. see the documentation for v1.7.3 for the most up-to-date information.

nng_wss_register(3)

NAME

nng_wss_register - register WebSocket secure transport

SYNOPSIS

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

int nng_wss_register(void);

DESCRIPTION

The nng_wss_register() function registers the wss transport(transport, wss) for use.

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.

SEE ALSO