We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2b7c3b commit 72d94ecCopy full SHA for 72d94ec
src/Plugins/Client/WebSocketTransport.js
@@ -137,10 +137,19 @@ class WebSocketTransport extends JSONRPC.ClientPluginBase
137
//console.error(error);
138
console.log("[" + process.pid + "] Rejecting all Promise instances in WebSockets/JSONRPCClientPlugin.");
139
140
+ let nCount = 0;
141
+
142
for(let nCallID in this._objWebSocketRequestsPromises)
143
{
144
this._objWebSocketRequestsPromises[nCallID].fnReject(error);
145
delete this._objWebSocketRequestsPromises[nCallID];
146
147
+ nCount++;
148
+ }
149
150
+ if(nCount)
151
+ {
152
+ console.error("[" + process.pid + "] Rejected " + nCount + " Promise instances in WebSockets/JSONRPCClientPlugin.");
153
}
154
155
0 commit comments