code: function UDPStream(opts) {
          assert.object(opts, 'options');
          assert.optionalString(opts.host, 'options.host');
          assert.optionalNumber(opts.port, 'options.port');
  
          SyslogStream.call(this, opts);
  
          this.host = opts.host || '127.0.0.1';
          this.port = opts.port || 514;
  
          this.socket = dgram.createSocket('udp4');
          this.socket.on('close', this.emit.bind(this, 'close'));
          this.socket.on('error', this.emit.bind(this, 'error'));
  
          this._pending = 0;
  }
docs: --- API