Created
June 6, 2014 00:10
-
-
Save ptrin/fbecb6e32e403a343e0a to your computer and use it in GitHub Desktop.
Revisions
-
ptrin revised this gist
Jun 6, 2014 . 1 changed file with 6 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,17 +5,15 @@ var bodyParser = require('body-parser'), var app = express(); var server = http.createServer(app); app.use( bodyParser.json(), express.static(__dirname+'/test-ui') ); app.listen(3000); var io = sio.listen(server); io.sockets.on('connection', function(socket) { console.log( 'Someone connected' ); }); -
ptrin revised this gist
Jun 6, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var bodyParser = require('body-parser'), var app = express(); var server = http.createServer(app); app.use(bodyParser()); app.use(express.static(__dirname+'/test-ui')); var ipaddress = "127.0.0.1"; -
ptrin revised this gist
Jun 6, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,9 @@ var server = http.createServer(app); app.use(bodyParser.json()); app.use(express.static(__dirname+'/test-ui')); var ipaddress = "127.0.0.1"; var port = 3000; app.listen(port, ipaddress); /* var io = sio.listen(server); -
ptrin revised this gist
Jun 6, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,8 +10,10 @@ app.use(express.static(__dirname+'/test-ui')); app.listen(3000); /* var io = sio.listen(server); io.sockets.on('connection', function(socket) { console.log( 'Someone connected' ); }); */ -
ptrin revised this gist
Jun 6, 2014 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,10 +5,8 @@ var bodyParser = require('body-parser'), var app = express(); var server = http.createServer(app); app.use(bodyParser.json()); app.use(express.static(__dirname+'/test-ui')); app.listen(3000); -
ptrin created this gist
Jun 6, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ var bodyParser = require('body-parser'), express = require('express'), http = require('http'), sio = require('socket.io'); var app = express(); var server = http.createServer(app); app.use( bodyParser.json(), express.static(__dirname+'/test-ui') ); app.listen(3000); var io = sio.listen(server); io.sockets.on('connection', function(socket) { console.log( 'Someone connected' ); });