Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function OutgoingMessage(request, send) {
BufferList.call(this)
this._packet = {
messageId: request.messageId
, token: request.token
, options: []
, confirmable: false
, ack: false
, reset: false
}
var that = this
if (request.confirmable) {
// replying in piggyback
this._packet.ack = true