Updating the HTML file

Now in order to get that done, the first thing we're going to do is tweak the current HTML file. Right now, index.html is going to load first. We actually don't want that to be the case, when we go to localhost:3000 we want to show our new join page. So what I'm going to do instead is move this page by renaming it. We're going to rename index.html to chat.html. I'm going to do the exact same thing with index.js, renaming it to chat.js.

Last but not least, I'm going to update the reference in the script where we load in index.js; instead, we'll load in chat.js. Now that we have this in place; we no longer have an HTML page that's going to load when you visit the site. If I try to go to localhost:3000, we're going to ...

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.