Sending an acknowledgement from server to the client

In order to get this done we have to make a change to both the listener and the emitter. If you only make a change to one it is not going to work as expected. We're going to start with the event emitter. We want a way to run some code when the acknowledgement has been sent from the server back to the client.

Get Advanced Node.js Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.