Open dead-claudia opened 6 years ago
The .write callback does not work - it only listens for "drain", not errors as well. Instead, I should wait for "error" and "drain" both, resolving/rejecting after the first one hits.
.write
"drain"
"error"
(Why does console printing have to be so hard?)
The
.write
callback does not work - it only listens for"drain"
, not errors as well. Instead, I should wait for"error"
and"drain"
both, resolving/rejecting after the first one hits.(Why does console printing have to be so hard?)