#include <websocket_client.hpp>
Public Types | |
using | ClientType = websocketpp::client< ClientConfiguration > |
using | ConnectionPtr = typename ClientType::connection_ptr |
using | MessagePtr = typename ClientType::message_ptr |
Public Member Functions | |
void | advertise (const std::vector< ClientAdvertisement > &channels) override |
Client () | |
void | close () override |
void | connect (const std::string &uri, std::function< void(websocketpp::connection_hdl)> onOpenHandler, std::function< void(websocketpp::connection_hdl)> onCloseHandler=nullptr) override |
std::future< void > | connect (const std::string &uri) override |
void | getParameters (const std::vector< std::string > ¶meterNames, const std::optional< std::string > &requestId=std::nullopt) override |
void | messageHandler (websocketpp::connection_hdl hdl, MessagePtr msg) |
void | publish (ClientChannelId channelId, const uint8_t *buffer, size_t size) override |
void | sendBinary (const uint8_t *data, size_t dataLength) |
void | sendServiceRequest (const ServiceRequest &request) override |
void | sendText (const std::string &payload) |
void | setBinaryMessageHandler (BinaryMessageHandler handler) override |
void | setParameters (const std::vector< Parameter > ¶meters, const std::optional< std::string > &requestId=std::nullopt) override |
void | setTextMessageHandler (TextMessageHandler handler) override |
void | subscribe (const std::vector< std::pair< SubscriptionId, ChannelId >> &subscriptions) override |
void | subscribeParameterUpdates (const std::vector< std::string > ¶meterNames) override |
void | unadvertise (const std::vector< ClientChannelId > &channelIds) override |
void | unsubscribe (const std::vector< SubscriptionId > &subscriptionIds) override |
void | unsubscribeParameterUpdates (const std::vector< std::string > ¶meterNames) override |
virtual | ~Client () |
Protected Attributes | |
BinaryMessageHandler | _binaryMessageHandler |
ConnectionPtr | _con |
ClientType | _endpoint |
std::shared_mutex | _mutex |
TextMessageHandler | _textMessageHandler |
websocketpp::lib::shared_ptr< websocketpp::lib::thread > | _thread |
Definition at line 59 of file websocket_client.hpp.
using foxglove::Client< ClientConfiguration >::ClientType = websocketpp::client<ClientConfiguration> |
Definition at line 61 of file websocket_client.hpp.
using foxglove::Client< ClientConfiguration >::ConnectionPtr = typename ClientType::connection_ptr |
Definition at line 63 of file websocket_client.hpp.
using foxglove::Client< ClientConfiguration >::MessagePtr = typename ClientType::message_ptr |
Definition at line 62 of file websocket_client.hpp.
|
inline |
Definition at line 65 of file websocket_client.hpp.
|
inlinevirtual |
Definition at line 78 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 168 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 118 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 84 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 107 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 194 of file websocket_client.hpp.
|
inline |
Definition at line 128 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 179 of file websocket_client.hpp.
|
inline |
Definition at line 239 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 187 of file websocket_client.hpp.
|
inline |
Definition at line 234 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 229 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 203 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 224 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 151 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 212 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 173 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 162 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 218 of file websocket_client.hpp.
|
protected |
Definition at line 250 of file websocket_client.hpp.
|
protected |
Definition at line 247 of file websocket_client.hpp.
|
protected |
Definition at line 245 of file websocket_client.hpp.
|
protected |
Definition at line 248 of file websocket_client.hpp.
|
protected |
Definition at line 249 of file websocket_client.hpp.
|
protected |
Definition at line 246 of file websocket_client.hpp.