Commits

ronald martinez  committed 549fb31

x

  • Participants
  • Parent commits ce2f0f6

Comments (0)

Files changed (2)

File package.json

   "version": "0.0.1",
   "dependencies": {
     "express": "2.5.x",
-    "socket.io": "0.8.x"
+    "socket.io": "0.8.x",
+    "express": "2.5.x"
   },
   "engines": {
     "node": "0.8.x",
+app = express.createServer();
+
 var port = process.env.PORT || 5000;
-var socket = require('socket.io')
-var io = socket.listen(port);
+var io = require('socket.io')
 
 io.configure(function () { 
   io.set("transports", ["xhr-polling"]); 
         message.emit("sendEvent", data);
     });
 });
+
+app.listen(port)