#include <websocketclientendpoint.h>
Public Member Functions | |
bool | start (nap::utility::ErrorState &error) override |
![]() | |
virtual bool | init (utility::ErrorState &errorState) override |
virtual void | stop () override |
bool | start (nap::utility::ErrorState &error) override |
bool | send (const WebSocketConnection &connection, const std::string &message, EWebSocketOPCode code, nap::utility::ErrorState &error) override |
bool | send (const WebSocketConnection &connection, void const *payload, int length, EWebSocketOPCode code, nap::utility::ErrorState &error) override |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
std::string | mCertificateChainFile |
Property: "CertificateChainFile" path to the certificate chain file. More... | |
std::string | mHostName |
Property: "HostName" host name to verify against the certificate. More... | |
![]() | |
bool | mLogConnectionUpdates = true |
Property: "LogConnectionUpdates" if client / server connection information is logged to the console. More... | |
EWebSocketLogLevel | mLibraryLogLevel = EWebSocketLogLevel::Warning |
Property: "LibraryLogLevel" library related equal to or higher than requested are logged. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
void | run () |
bool | registerClient (IWebSocketClient &client, utility::ErrorState &error) override |
void | unregisterClient (const IWebSocketClient &client) override |
![]() | |
uint32 | mLogLevel |
Converted library log level. More... | |
uint32 | mAccessLogLevel |
Log client / server connection data. More... | |
bool | mRunning |
If the client connection to the server is open. More... | |
std::future< void > | mClientTask |
The client server thread. More... | |
std::vector< std::unique_ptr< WebSocketClientWrapper< wspp::ConfigTLS > > > | mClients |
All unique client connections. More... | |
websocketpp::client< wspp::ConfigTLS > | mEndPoint |
websocketpp client end point More... | |
Secured client end point connection.
|
overridevirtual |
Starts the endpoint. This is a non-blocking call. New connections are accepted. Connection updates and messages are received in a background thread.
error | contains the error if the endpoint can't be started. |
Reimplemented from Device.
std::string mCertificateChainFile |
Property: "CertificateChainFile" path to the certificate chain file.
std::string mHostName |
Property: "HostName" host name to verify against the certificate.