HTML and CSS Reference
Step 4: Handle updates on the server
Similarly on the server, the model will be updated by incoming messages from various cli-
ents. Create a file called planner-server.js in your working directory for this code, or grab
the version from the code download. In this file you'll need to set up listeners on the mod-
el to send those same updates to any other connected client. The key part of the code for
responding to a moveTask message is shown in the following listing. Check the planner-
server.js file in the code download for the rest of the code.