diff --git a/ws/.gitignore b/ws/.gitignore index 378eac25..e3fbd983 100644 --- a/ws/.gitignore +++ b/ws/.gitignore @@ -1 +1,2 @@ build +node_modules diff --git a/ws/package-lock.json b/ws/package-lock.json new file mode 100644 index 00000000..1306ec3b --- /dev/null +++ b/ws/package-lock.json @@ -0,0 +1,19 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "async-limiter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" + }, + "ws": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.0.tgz", + "integrity": "sha512-deZYUNlt2O4buFCa3t5bKLf8A7FPP/TVjwOeVNpw818Ma5nk4MLXls2eoEGS39o8119QIYxTrTDoPQ5B/gTD6w==", + "requires": { + "async-limiter": "1.0.0" + } + } + } +} diff --git a/ws/ws_receive.cpp b/ws/ws_receive.cpp index e46ea14b..6f270c52 100644 --- a/ws/ws_receive.cpp +++ b/ws/ws_receive.cpp @@ -231,6 +231,7 @@ namespace ix } else if (messageType == ix::WebSocket_MessageType_Error) { + ss << "ws_receive "; ss << "Connection error: " << error.reason << std::endl; ss << "#retries: " << error.retries << std::endl; ss << "Wait time(ms): " << error.wait_time << std::endl; diff --git a/ws/ws_send.cpp b/ws/ws_send.cpp index ed6911e6..566787f8 100644 --- a/ws/ws_send.cpp +++ b/ws/ws_send.cpp @@ -162,6 +162,7 @@ namespace ix } else if (messageType == ix::WebSocket_MessageType_Error) { + ss << "ws_send "; ss << "Connection error: " << error.reason << std::endl; ss << "#retries: " << error.retries << std::endl; ss << "Wait time(ms): " << error.wait_time << std::endl;