#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 |
std::future< void > | connect (const std::string &uri) override |
void | connect (const std::string &uri, std::function< void(websocketpp::connection_hdl)> onOpenHandler, std::function< void(websocketpp::connection_hdl)> onCloseHandler=nullptr) override |
void | fetchAsset (const std::string &uri, uint32_t requestId) 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 60 of file websocket_client.hpp.
using foxglove::Client< ClientConfiguration >::ClientType = websocketpp::client<ClientConfiguration> |
Definition at line 62 of file websocket_client.hpp.
using foxglove::Client< ClientConfiguration >::ConnectionPtr = typename ClientType::connection_ptr |
Definition at line 64 of file websocket_client.hpp.
using foxglove::Client< ClientConfiguration >::MessagePtr = typename ClientType::message_ptr |
Definition at line 63 of file websocket_client.hpp.
|
inline |
Definition at line 66 of file websocket_client.hpp.
|
inlinevirtual |
Definition at line 79 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 169 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 119 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 108 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 85 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 225 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 195 of file websocket_client.hpp.
|
inline |
Definition at line 129 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 180 of file websocket_client.hpp.
|
inline |
Definition at line 245 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 188 of file websocket_client.hpp.
|
inline |
Definition at line 240 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 235 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 204 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 230 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 152 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 213 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 174 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 163 of file websocket_client.hpp.
|
inlineoverridevirtual |
Implements foxglove::ClientInterface.
Definition at line 219 of file websocket_client.hpp.
|
protected |
Definition at line 256 of file websocket_client.hpp.
|
protected |
Definition at line 253 of file websocket_client.hpp.
|
protected |
Definition at line 251 of file websocket_client.hpp.
|
protected |
Definition at line 254 of file websocket_client.hpp.
|
protected |
Definition at line 255 of file websocket_client.hpp.
|
protected |
Definition at line 252 of file websocket_client.hpp.