in lib/push_consumer.js [57:72]
constructor(groupId, instanceName, options) {
super();
if(typeof instanceName !== "string" && !options) {
options = instanceName;
instanceName = null;
}
options = Object.assign({}, DEFAULT_OPTIONS, options || {});
if(options.logLevel && typeof options.logLevel === "string") {
options.logLevel = OPTIONS_LOG_LEVEL[options.logLevel.toUpperCase()] || OPTIONS_LOG_LEVEL.INFO;
}
this.core = new binding.PushConsumer(groupId, instanceName, options);
this.core.setListener(this.emit.bind(this, "message"));
this.status = START_STATUS.STOPPED;
}