mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
adapted bootstrapping
This commit is contained in:
parent
ec84e8d025
commit
36c0e34dc5
5 changed files with 28 additions and 15 deletions
15
client.js
Executable file
15
client.js
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
define([
|
||||
"Game/Client/Networker",
|
||||
"Lib/Vendor/SocketIO"
|
||||
],
|
||||
|
||||
function(Networker, SocketIO) {
|
||||
|
||||
function Client(location) {
|
||||
this.socket = SocketIO.connect(location);
|
||||
this.networker = new Networker(socket);
|
||||
}
|
||||
|
||||
return Client;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue