Multiplayer Java Script game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
358 B

6 years ago
  1. /**
  2. * Main server file which handles users
  3. *
  4. * @author Jeffery Russell
  5. * 2-22-18
  6. */
  7. const app = require('express')();
  8. const http = require('http').Server(app);
  9. const io = require('socket.io')(http);
  10. const PORT = 3000;
  11. var players
  12. io.on('connection', function(socket)
  13. {
  14. };
  15. http.listen(PORT, function()
  16. {
  17. console.log('listening on *:3000');
  18. });