i am new to web sockets and node .. I am confused with different terminologies used with node.js. Few places it’s mentioned it’s a tool, few others it’s a JavaScript program / any platform or some times it’s an sdk at server side. Please tell me what exactly is this ode.js?
How do i write program using websockets.io in windows machine (server-side) for a client app written using web sockets. Or is there any better implementation than websockets.io for producing a faster response.. or high speed?
first of all you need to install “exress” module to use socket.io [for simplicity you should use “express”. otherwise you can implement socket.io by other way too.]
To install express write in your terminal
Then install socket.io module for that you should write in teminal
Make file app.js
Write code as below
Then make file index.html in views folder
in it write