DEV Community

Newbie guide: socket.IO

Kauress on April 19, 2019

Guide Introduction What happens? Summary Set up the main project directory Install dependencies Directory structure Create a server in ...
Collapse
 
akaustav profile image
Ameet Kaustav

I apologize in advance for pointing out a typo in your code under the section titled - Create a server in index.js:

/setting up the express app by invoking the express function

should probably be:

//setting up the express app by invoking the express function
Collapse
 
kauresss profile image
Kauress

Thanks Ameet for pointing that out! Changed

Collapse
 
uddeshjain profile image
Uddesh

Great explanation. Waiting for next part.

Collapse
 
kauresss profile image
Kauress • Edited

Thanks!

Collapse
 
thewashiba profile image
Lukas

Why are you using var?

Collapse
 
kauresss profile image
Kauress

As this is a newbie article on socket.IO, I wanted to make it accessible to all and focus on socket.IO, instead of explaining variable scope and hoisting so used the more familiar 'var'. In the socket.IO project I will use let and const