From 688f85fda67fa2de04f053548b1229ccda916a8e Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Tue, 21 Dec 2021 01:59:15 -0500 Subject: [PATCH] Fix errors in example code. (#336) --- docs/usage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index f3686ee0..62a7adf2 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -141,9 +141,9 @@ webSocket.setOnMessageCallback([](const ix::WebSocketMessagePtr& msg) { std::stringstream ss; ss << "Error: " << msg->errorInfo.reason << std::endl; - ss << "#retries: " << msg->eventInfo.retries << std::endl; - ss << "Wait time(ms): " << msg->eventInfo.wait_time << std::endl; - ss << "HTTP Status: " << msg->eventInfo.http_status << std::endl; + ss << "#retries: " << msg->errorInfo.retries << std::endl; + ss << "Wait time(ms): " << msg->errorInfo.wait_time << std::endl; + ss << "HTTP Status: " << msg->errorInfo.http_status << std::endl; std::cout << ss.str() << std::endl; } }