• res.write("{");? It should write { for the start of the JSON, then each drain event it writes key : value,\n and finally it'll write } and close the connection.

About

Avatar for Gordon @Gordon started