How to use the bl.prototype function in bl

To help you get started, we’ve selected a few bl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mcollina / node-coap / lib / outgoing_message.js View on Github external
OutgoingMessage.prototype.end = function(a, b) {
  BufferList.prototype.end.call(this, a, b)

  var packet = this._packet
    , that = this

  packet.code = toCode(this.code || this.statusCode)
  packet.payload = this

  if (this._ackTimer)
    clearTimeout(this._ackTimer)

  this._send(this, packet)

  // easy clean up after generating the packet
  delete this._packet.payload

  return this

bl

Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!

MIT
Latest version published 1 month ago

Package Health Score

89 / 100
Full package analysis

Popular bl functions