score:1

the unpackmessage(val) call doesn't return anything:

module.exports = {
  unpackmessage: function(value) {
    ccc.current.unpack(value);
  }
}

you need to return ccc.current.unpack(value);

module.exports = {
  unpackmessage: function(value) {
    return ccc.current.unpack(value);
  }
}

Related Query

More Query from same tag