NAP
Public Member Functions | List of all members
WebSocketConnection Class Referencefinal

#include <websocketconnection.h>

Public Member Functions

 WebSocketConnection ()=default
 
 WebSocketConnection (WebSocketConnection &&other)=default
 
WebSocketConnectionoperator= (WebSocketConnection &&other)=default
 
 WebSocketConnection (const WebSocketConnection &other)=default
 
WebSocketConnectionoperator= (const WebSocketConnection &other)=default
 

Description

Utility class that wraps a web-socket connection handle. Only web-socket endpoints can construct a valid nap::WebSocketConnection. Use this object in combination with an interface (client or server) to send messages. By default the connection is invalid. The object is light and can be copied and moved around freely.

Constructor & Destructor Documentation

◆ WebSocketConnection() [1/3]

WebSocketConnection ( )
default

◆ WebSocketConnection() [2/3]

◆ WebSocketConnection() [3/3]

WebSocketConnection ( const WebSocketConnection other)
default

Member Function Documentation

◆ operator=() [1/2]

WebSocketConnection& operator= ( const WebSocketConnection other)
default

◆ operator=() [2/2]

WebSocketConnection& operator= ( WebSocketConnection &&  other)
default