server, why socket.io require to create that Web server with Http module?
Because websockets start out as HTTP requests
For initiating request an http request is send from client to server and then server can send response without any request from client, but, atleast one request is required, thus http module
Обсуждают сегодня