Class WsClient#
Defined in File DataPlotter.h
Class Documentation#
-
class WsClient#
Simple websocket client to connect to a websocket and send messages.
Public Functions
-
WsClient(std::string_view host, std::string_view port, std::string_view target)#
Constructor.
- Parameters:
host – The host for the websocket.
port – The port for the websocket.
target – The target for the websocket.
-
void start()#
Start the websocket and create the connection.
-
void send(std::string msg)#
Send a message over the websocket.
- Parameters:
msg – The message to send.
-
void stop()#
Stop the websocket.
-
WsClient(std::string_view host, std::string_view port, std::string_view target)#