nng_ws_register(3)

NAME

nng_ws_register - register WebSocket transport

SYNOPSIS

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

int nng_ws_register(void);

DESCRIPTION

The nng_ws_register() function registers the ws transport(transport, ws) 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