mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
renamed server bootstrap
This commit is contained in:
parent
aa95c38cc2
commit
a2460ed385
1 changed files with 0 additions and 0 deletions
16
app/Bootstrap/Server.js
Executable file
16
app/Bootstrap/Server.js
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
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;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue