I\'m having some issues in compiling a socket.io app on heroku.
Thats the app.js file
var app = require(\'express\').createServer()
, io = require
I did some googling but cant find the solution, But i tried to change my code as below and it started to work...
var express = require('express'),
app = express(),
server = require('http').createServer(app),
io = require('socket.io').listen(server),
var port = process.env.PORT || 5000; // Use the port that Heroku provides or default to 5000
server.listen(port, function() {
});
io.configure(function () {
io.set("transports", ["xhr-polling"]);
io.set("polling duration", 10);
io.set("log level", 1);
});
let me know if you same issue and still not getting success..