Skip to content

Commit

Permalink
Allow sending of prewrapped ulongs as message ids
Browse files Browse the repository at this point in the history
  • Loading branch information
grs committed Jan 25, 2023
1 parent 3939ab7 commit 669ae94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,8 @@ types.wrap_message_id = function(o) {
return types.wrap_ulong(o);
} else if (Buffer.isBuffer(o)) {
return types.wrap_uuid(o);
} else if (o instanceof Typed) {
return o;
} else {
//TODO handle uuids
throw new errors.TypeError('invalid message id:' + o);
Expand Down

0 comments on commit 669ae94

Please sign in to comment.