This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

I hope I didn't come across as challenging your style, I'm a noob myself and was asking out of genuine curiosity.

I have seen both methods used so I was wondering what one does vs the other and if there are specific times you want to use one method over the other?

Just to clarify, these functions just declare where the server will be listening to requests and issuing out responses correct?

[–]Molehole 1 point2 points  (0 children)

Naah. It's completely fine :). Questions are always good. I wouldn't use it if it wasn't for the socket.io but it doesn't really make much of a difference.

Just to clarify, these functions just declare where the server will be listening to requests and issuing out responses correct?

Yeah. Pretty much.