Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waitForResponse option always results on Socket timeout error #262

Open
gkourpa opened this issue Sep 21, 2024 · 0 comments
Open

waitForResponse option always results on Socket timeout error #262

gkourpa opened this issue Sep 21, 2024 · 0 comments

Comments

@gkourpa
Copy link

gkourpa commented Sep 21, 2024

Hi all, I've been using the library with an EPSON TM-T20III thermal printer and I'm having an issue when printing over the network with the waitForResponse option set to true.

The printer prints out everything normally, but then I'm always getting a Socket timeout error (even if I set the timeout very large), which means that the networkConnection.on('data', handler) never gets executed.

I've currently implemented a workaround (I basically wait for some time according to the buffer size before marking the print job as complete), but I would definetely like to have a more robust and less hacky approach to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant