↧
Answer by Pranav Bhatt for In node.js do I need http when building a...
var express = require('express');var app = express();var server = require('http').createServer(app);var io = require('socket.io').listen(server);...server.listen(1234);However, app.listen() also...
View ArticleAnswer by KAKAN for In node.js do I need http when building a...
no, you probably don't need it.You can use something like:var app = require('express').createServer();var io = require('socket.io')(app);//Your express and socket.io code goes here:
View ArticleIn node.js do I need http when building a socket.io/express app?
I have just started using node.js and I can build a simple app that responds to requests and has some basic routing using the express framework.I am looking to create something using socket.io but I am...
View Article