Beast Logo

PrevUpHomeNext

websocket::close_reason

Description of the close reason.

struct close_reason
Member Functions

Name

Description

close_reason

Default constructor.

Construct from a code.

Construct from a reason. code is close_code::normal.

Construct from a code and reason.

operator bool

Returns true if a code was specified.

Data Members

Name

Description

code

The close code.

reason

The optional utf8-encoded reason string.

This object stores the close code (if any) and the optional utf-8 encoded implementation defined reason string.

Requirements

Header: beast/websocket/rfc6455.hpp

Convenience header: beast/websocket.hpp


PrevUpHomeNext