From 3c3fe3b9f727c1e398760b139a2ef2da41d3cbda Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 19 Aug 2020 01:07:55 -0400 Subject: settings, token entry, receive READY --- 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 47a60d5..dc8cbec 100644 --- a/discord/websocket.hpp +++ b/discord/websocket.hpp @@ -13,6 +13,9 @@ public: using JSONCallback_t = std::function; void SetJSONCallback(JSONCallback_t func); void Send(const std::string &str); + void Send(const nlohmann::json &j); + void Stop(); + bool IsOpen() const; private: void OnMessage(const ix::WebSocketMessagePtr &msg); -- cgit v1.2.3