Quantcast
Channel: In node.js do I need http when building a socket.io/express app? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


In 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>