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 47a60d5..dc8cbec 100644
--- a/discord/websocket.hpp
+++ b/discord/websocket.hpp
@@ -13,6 +13,9 @@ public:
using JSONCallback_t = std::function<void(nlohmann::json)>;
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);