Public Member Functions | List of all members
WsClient Class Reference

A simple WebSocket client. More...

#include <WsClient.hpp>

Public Member Functions

 WsClient (std::string host_, unsigned short port_=80)
 Create a WebSocket client instance. More...
 
 WsClient (const WsClient &)=default
 Create an HTTPS client by copying the supplied instance. More...
 
 WsClient (WsClient &&)=default
 Create an HTTPS client by moving the contents of the supplied instance. More...
 
WsClientoperator= (const WsClient &)=default
 Assign an HTTPS client by copying the supplied instance. More...
 
WsClientoperator= (WsClient &&)=default
 Assign an HTTPS client by moving the contents of the supplied instance. More...
 

Detailed Description

A simple WebSocket client.

This is currently just used for testing. Future development will extend this class into a full WebSocket client.

Constructor & Destructor Documentation

◆ WsClient() [1/3]

WsClient ( std::string  host_,
unsigned short  port_ = 80 
)
inlineexplicit

Create a WebSocket client instance.

Parameters
host_the host name to connect to
port_the port number to connect to

◆ WsClient() [2/3]

WsClient ( const WsClient )
default

Create an HTTPS client by copying the supplied instance.

◆ WsClient() [3/3]

WsClient ( WsClient &&  )
default

Create an HTTPS client by moving the contents of the supplied instance.

Member Function Documentation

◆ operator=() [1/2]

WsClient& operator= ( const WsClient )
default

Assign an HTTPS client by copying the supplied instance.

◆ operator=() [2/2]

WsClient& operator= ( WsClient &&  )
default

Assign an HTTPS client by moving the contents of the supplied instance.


The documentation for this class was generated from the following file: