What’s the difference (purpose) between socket.io and node.js projects?
What’s the difference (purpose) between socket.io and node.js projects?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They have nothing to do with each other, fundamentally.
Node.js is host for JavaScript, and is commonly used as an event-driven server.
Socket.IO is a wrapper for Web Sockets that allows simple communication between clients and servers. It also serves as a method to introduce Web-Socket-like functionality in browsers that do not natively support Web Sockets.
Your confusion likely stems from the fact that Socket.IO is hosted within Node.js projects on the server. For comparison, your question is similar to “What is the difference between cars and roads?” They are used with each other, but are not the same thing. There is probably a better analogy here, but I cannot think of one. Perhaps someone else could comment and add to this.