lib/common/message.js
function Message (data, headers, deliveryInfo) {
        assert.object(data);
        assert.object(headers);
        assert.object(deliveryInfo);

        this.data = Message.factory(data, deliveryInfo.type);
        this.headers = headers;
        this.deliveryInfo = deliveryInfo;
    }
function Message (data, headers, deliveryInfo) {
        assert.object(data);
        assert.object(headers);
        assert.object(deliveryInfo);

        this.data = Message.factory(data, deliveryInfo.type);
        this.headers = headers;
        this.deliveryInfo = deliveryInfo;
    }
function Message ( data , headers , deliveryInfo ) { assert . object ( data ) ; assert . object ( headers ) ; assert . object ( deliveryInfo ) ; this . data = Message . factory ( data , deliveryInfo . type ) ; this . headers = headers ; this . deliveryInfo = deliveryInfo ; }
Constructor for a message

@param {*} messenger
@param {Object} data
@param {*} [options]
@constructor
Constructor for a message