diff --git a/lib/types.js b/lib/types.js index e139ce2..d5a27b9 100644 --- a/lib/types.js +++ b/lib/types.js @@ -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);