--- version: tip layout: manpage title: nng_wss_register(3) --- Table of Contents
{% if page.version and page.version != site.latest %} {% if page.version == "tip" %} {% include tip_version.html %} {% else %} {% include old_version.html %} {% endif %} {% endif %}

SYNOPSIS

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

int nng_wss_register(void);

DESCRIPTION

The nng_wss_register() function registers the wss transport 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