@@ -10290,7 +10290,7 @@ module.exports = class IncomingRequest {
1029010290 }
1029110291
1029210292 set bidirectionalWebsocketRouter(bidirectionalWebsocketRouter) {
10293- assert(bidirectionalWebsocketRouter.constructor.name === "BidirectionalWebsocketRouter");
10293+ assert(bidirectionalWebsocketRouter.constructor.name === "BidirectionalWebsocketRouter", "bidirectionalWebsocketRouter must be an instance of BidirectionalWebsocketRouter." );
1029410294
1029510295 this._bidirectionalWebsocketRouter = bidirectionalWebsocketRouter;
1029610296 }
@@ -12864,7 +12864,7 @@ module.exports = class BidirectionalWebsocketRouter extends EventEmitter {
1286412864 }
1286512865
1286612866 connectionIDToSingletonClient(nConnectionID, ClientClass) {
12867- assert(typeof nConnectionID === "number");
12867+ assert(typeof nConnectionID === "number", "nConnectionID must be a number. Received this: " + JSON.stringify(nConnectionID) );
1286812868 assert(typeof ClientClass === "function", "Invalid ClientClass value: " + typeof ClientClass);
1286912869
1287012870 if (!this._objSessions.hasOwnProperty(nConnectionID)) {
@@ -13496,9 +13496,9 @@ JSONRPC.ServerPluginBase = __webpack_require__(15);
1349613496module.exports = class DebugLogger extends JSONRPC.ServerPluginBase {
1349713497 async beforeJSONDecode(incomingRequest) {
1349813498 if (incomingRequest.requestBody.length > 1024 * 1024) {
13499- console.log("[" + process.pid + "] [" + new Date().toISOString() + "] Received JSONRPC request at endpoint path" + incomingRequest.endpoint.path + ", " + incomingRequest.requestObject.method + "(). Larger than 1 MB, not logging. \n");
13499+ console.log("[" + process.pid + "] [" + new Date().toISOString() + "] Received JSONRPC request at endpoint path " + incomingRequest.endpoint.path + ", " + incomingRequest.requestObject.method + "(). Larger than 1 MB, not logging. \n");
1350013500 } else {
13501- console.log("[" + process.pid + "] [" + new Date().toISOString() + "] Received JSONRPC request at endpoint path" + incomingRequest.endpoint.path + ": " + incomingRequest.requestBody + "\n");
13501+ console.log("[" + process.pid + "] [" + new Date().toISOString() + "] Received JSONRPC request at endpoint path " + incomingRequest.endpoint.path + ": " + incomingRequest.requestBody + "\n");
1350213502 }
1350313503 }
1350413504
0 commit comments