Skip to content

Commit 669ae94

Browse files
committed
Allow sending of prewrapped ulongs as message ids
1 parent 3939ab7 commit 669ae94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/types.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ types.wrap_message_id = function(o) {
516516
return types.wrap_ulong(o);
517517
} else if (Buffer.isBuffer(o)) {
518518
return types.wrap_uuid(o);
519+
} else if (o instanceof Typed) {
520+
return o;
519521
} else {
520522
//TODO handle uuids
521523
throw new errors.TypeError('invalid message id:' + o);

0 commit comments

Comments
 (0)