Skip to content

Commit

Permalink
Validation call identifier type
Browse files Browse the repository at this point in the history
Closes: #246

PR-URL: #257
  • Loading branch information
tshemsedinov committed Oct 12, 2021
1 parent 1a2904c commit b3f579c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('/');
Expand Down

0 comments on commit b3f579c

Please sign in to comment.