generators/app/templates/server/app.js
function startServer() {
  var server = require('http').createServer(app);
  var socket = socketio(server, {
    serveClient: true,
    path: '/socket.io-client'
  });
  // Setup SocketIO
  socketConfig(socket);
  return server;
}
function startServer() {
  var server = require('http').createServer(app);
  var socket = socketio(server, {
    serveClient: true,
    path: '/socket.io-client'
  });
  // Setup SocketIO
  socketConfig(socket);
  return server;
}
function startServer ( ) { var server = require ( 'http' ) . createServer ( app ) ; var socket = socketio ( server , { serveClient : true , path : '/socket.io-client' } ) ; // Setup SocketIO socketConfig ( socket ) ; return server ; }
Create an express http server and return it
Config the socketio service to use this server
@api private
@return {}
Create an express http server and return it Config the socketio service to use this server