Master de II. ULL. 1er cuatrimestre
null
to the LDJClient
constructor, and asserts that an error is thrownnull
: the semantic being that the created stream behaves as /dev/null
in Unix. See npm package dev-nullLDJClient
already handles the case in which a properly formatted JSON string is split over multiply lines. What happen if the incoming data is not a properly formatted JSON string?LDJClient
emit a close
event for its listeners?1
2
3
4
[~/sol-nodejs-the-right-way/networking-with-sockets-chapter-3(master)]$ pwd -P
/Users/casiano/local/src/CA/sol-nodejs-the-right-way/networking-with-sockets-chapter-3
chapter3-exercises