diff --git a/CHANGELOG.md b/CHANGELOG.md index 8511016f..f60e6810 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,13 +3,14 @@ ## [Unreleased][unreleased] - Return index.html not only from the root folder +- Fix parse broken JSON packets +- Fix detecting ping packets (empty objects) +- Fix error logging and passing to client +- Validation `call` identifier type ## [2.0.3][] - 2021-09-23 - Remove `toString` in `receiveBody` to be compatible with ws -- Fix parse broken JSON packets -- Fix detecting ping packets (empty objects) -- Fix error logging and passing to client ## [2.0.2][] - 2021-09-11 diff --git a/lib/channel.js b/lib/channel.js index 36af23da..4f8a7c08 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -102,7 +102,7 @@ class Channel { return; } const [callType, target] = Object.keys(packet); - const callId = packet[callType]; + const callId = parseInt(packet[callType], 10); const args = packet[target]; if (callId && args) { const [interfaceName, methodName] = target.split('/');