Created
          June 6, 2014 00:10 
        
      - 
      
 - 
        
Save ptrin/fbecb6e32e403a343e0a to your computer and use it in GitHub Desktop.  
  
    
      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 characters
    
  
  
    
  | 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' ); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment