Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const OstWSProvider = (module.exports = function(url, i_d_k, options) {
const oThis = this;
//Note Down url
oThis.endPointUrl = url;
//Take Care of Options
oThis.options = Object.assign({}, OstWSProvider.DefaultOptions, options || {});
//Create Event Emiter.
oThis.eventEmitter = new Events.EventEmitter();
oThis.eventEmitter.setMaxListeners(oThis.options.emitterMaxListeners);
//Call the baseclass constructor with arguments.
return WebsocketProvider.apply(oThis, arguments) || oThis;
});