Skip to content

Commit ba1b780

Browse files
author
ionut.stan
committed
Debugging stuff.
1 parent a74aabb commit ba1b780

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/BidirectionalWebsocketRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class BidirectionalWebsocketRouter extends EventEmitter
132132
*/
133133
connectionIDToSingletonClient(nConnectionID, ClientClass)
134134
{
135-
assert(typeof nConnectionID === "number");
135+
assert(typeof nConnectionID === "number", "nConnectionID must be a number. Received this: " + JSON.stringify(nConnectionID));
136136
assert(typeof ClientClass === "function", "Invalid ClientClass value: " + (typeof ClientClass));
137137

138138
if(!this._objSessions.hasOwnProperty(nConnectionID))

src/Plugins/Server/DebugLogger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class DebugLogger extends JSONRPC.ServerPluginBase
1313
{
1414
if(incomingRequest.requestBody.length > 1024 * 1024)
1515
{
16-
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");
16+
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");
1717
}
1818
else
1919
{
20-
console.log("[" + process.pid + "] [" + (new Date()).toISOString() + "] Received JSONRPC request at endpoint path" + incomingRequest.endpoint.path + ": " + incomingRequest.requestBody + "\n");
20+
console.log("[" + process.pid + "] [" + (new Date()).toISOString() + "] Received JSONRPC request at endpoint path " + incomingRequest.endpoint.path + ": " + incomingRequest.requestBody + "\n");
2121
}
2222
}
2323

tests/Browser/TestEndpoint.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/* eslint-disable */
33

44
/**
5+
* Keep everything IE10 compatible, so it can be tested there as well.
6+
*
57
* @class
68
*/
79
function TestEndpoint()
@@ -10,7 +12,7 @@ function TestEndpoint()
1012
this,
1113
[
1214
/*strName*/ "Test",
13-
/*strPath*/ location.protocol + "//" + location.host + '/api', // /api, replaced / with \x2F because issues.
15+
/*strPath*/ location.protocol + "//" + location.host + "/api",
1416
/*objReflection*/ {},
1517
/*classReverseCallsClient*/ JSONRPC.Client
1618
]

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = [
7676
}
7777
})
7878
]
79-
}/*,
79+
},
8080
{
8181
target: "web",
8282
externals: {
@@ -115,6 +115,6 @@ module.exports = [
115115
},
116116
plugins: [
117117
]
118-
}*/
118+
}
119119
];
120120

0 commit comments

Comments
 (0)