diff --git a/lib/transports/ws2.js b/lib/transports/ws2.js index facba4d0..659c6c77 100644 --- a/lib/transports/ws2.js +++ b/lib/transports/ws2.js @@ -8,6 +8,7 @@ const CbQ = require('cbq') const _Throttle = require('lodash.throttle') // eslint-disable-line const _isArray = require('lodash/isArray') const _isEmpty = require('lodash/isEmpty') +const _isUndefined = require('lodash/isUndefined') const _isString = require('lodash/isString') const _isNumber = require('lodash/isNumber') const _includes = require('lodash/includes') @@ -1244,7 +1245,7 @@ class WSv2 extends EventEmitter { for (let k = 0; k < filterIndices.length; k++) { filterValue = filter[filterIndices[k]] - if (_isEmpty(filterValue) || filterValue === '*') { + if (_isUndefined(filterValue) || filterValue === '*') { continue }