summaryrefslogtreecommitdiff
path: root/discord/websocket.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-08-19 01:07:55 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-08-19 01:07:55 -0400
commit3c3fe3b9f727c1e398760b139a2ef2da41d3cbda (patch)
treecc25fe85a659c043440f5ec98f8b97a17ef10e52 /discord/websocket.hpp
parent18af78e6af49821f8c7adb5b4325d75c8bf4fd03 (diff)
downloadabaddon-portaudio-3c3fe3b9f727c1e398760b139a2ef2da41d3cbda.tar.gz
abaddon-portaudio-3c3fe3b9f727c1e398760b139a2ef2da41d3cbda.zip
settings, token entry, receive READY
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);