From 4b903bbd3e8436e1d63b8c12e76d8a3c924da5fc Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 19 Aug 2020 21:08:57 -0400 Subject: add http client and channel reordering (waste of time) --- discord/websocket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'discord/websocket.cpp') diff --git a/discord/websocket.cpp b/discord/websocket.cpp index 01d01ca..b867368 100644 --- a/discord/websocket.cpp +++ b/discord/websocket.cpp @@ -35,10 +35,10 @@ void Websocket::Send(const nlohmann::json &j) { void Websocket::OnMessage(const ix::WebSocketMessagePtr &msg) { switch (msg->type) { case ix::WebSocketMessageType::Message: { - if (msg->str.size() > 1000) - printf("%s\n", msg->str.substr(0, 1000).c_str()); - else - printf("%s\n", msg->str.c_str()); + //if (msg->str.size() > 1000) + // printf("%s\n", msg->str.substr(0, 1000).c_str()); + //else + // printf("%s\n", msg->str.c_str()); auto obj = nlohmann::json::parse(msg->str); if (m_json_callback) m_json_callback(obj); -- cgit v1.2.3