chuck.js/app/Bootstrap/Server.js
2012-07-22 00:44:39 +02:00

16 lines
No EOL
331 B
JavaScript
Executable file

define([
"Server/HttpServer",
"Server/Socket",
"Server/Coordinator"
],
function(HttpServer, Socket, Coordinator) {
function Server(options) {
this.coordinator = new Coordinator();
this.httpServer = new HttpServer(options);
this.socket = new Socket(httpServer.getServer(), options, coordinator);
}
return Server;
});