You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a REST service with Node.js using Express that prints tickets to ESC/POS bluetooth printer.
The actual result my service print only the first time and I need to restart the bluetooth to print again.
I tried update my service to only look for the printer and return it but it only works a couple of times. I received this error in the console:
(node:16608) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Device]. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created)
I want to create a REST service with Node.js using Express that prints tickets to ESC/POS bluetooth printer.
The actual result my service print only the first time and I need to restart the bluetooth to print again.
I tried update my service to only look for the printer and return it but it only works a couple of times. I received this error in the console:
(node:16608) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Device]. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created)
The expected result print data multiple times
Here is my printerService.js :
The text was updated successfully, but these errors were encountered: