From ae77bfd1d1df50d8159e50fee4f7c5616cffe1b8 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 27 Nov 2020 01:37:01 -0500 Subject: set user-agent through ini --- discord/websocket.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'discord/websocket.hpp') 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 type_signal_open; -- cgit v1.2.3