all files / lib/ Message.js

100% Statements 8/8
100% Branches 0/0
100% Functions 1/1
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22                    29× 29× 29×   29× 29× 29×      
/**
 * A RELP message
 * Also contains `remoteAddress`,`socketId`, and `acked` for consumer information
 *
 * @param {String} transactionId The client transaction id
 * @param {String} command The command of the message, `syslog`, `open`, `close`, etc
 * @param {String} body Body of the command, usually a log line or a handshake
 *
 * @constructor
 */
var Message = function (transactionId, command, body) {
    this.transactionId = transactionId
    this.command = command
    this.body = body
 
    this.socketId = void 0
    this.remoteAddress = void 0
    this.acked = false
}
 
module.exports = Message