http res.on('end') not working #5381
Unanswered
espruino-discuss3
asked this question in
General
Replies: 1 comment
-
Posted at 2016-07-25 by @gfwilliams Thanks - annoyingly It's odd that I'll add an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-07-24 by user47006
Hello,
I have a pico with an ESP8226 working and trying to move some code that I currently have from a node.js project but it seems that res.on('end') does not work in espruino.
In order to fix it, I have to change the event from 'end' to 'close'.
I also tried changing my nodejs app to use 'close' but It does not work there, I know it's an easy change but I was tying to have the code compatible with node.js and espruino.
Is there a way to add the event 'end' in the http response in espruino?
Code not working in espruino pico
thx
Beta Was this translation helpful? Give feedback.
All reactions