set user-agent through ini

This commit is contained in:
ouwou
2020-11-27 01:37:01 -05:00
parent 1463d8da9e
commit ae77bfd1d1
7 changed files with 46 additions and 10 deletions

View File

@@ -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;