summaryrefslogtreecommitdiff
path: root/discord/websocket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/websocket.hpp')
-rw-r--r--discord/websocket.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/websocket.hpp b/discord/websocket.hpp
index ed6317a..e6a6489 100644
--- a/discord/websocket.hpp
+++ b/discord/websocket.hpp
@@ -11,6 +11,8 @@ public:
Websocket();
void StartConnection(std::string url);
+ void SetUserAgent(std::string agent);
+
void Send(const std::string &str);
void Send(const nlohmann::json &j);
void Stop();
@@ -21,6 +23,7 @@ private:
void OnMessage(const ix::WebSocketMessagePtr &msg);
ix::WebSocket m_websocket;
+ std::string m_agent;
public:
typedef sigc::signal<void> type_signal_open;