mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
messed everything up .... :( 111
This commit is contained in:
parent
03678eb773
commit
ec1bceb1b6
13 changed files with 145 additions and 117 deletions
13
client.js
13
client.js
|
|
@ -4,7 +4,12 @@ requirejs.config({
|
|||
|
||||
var inspector = {};
|
||||
|
||||
requirejs(["Bootstrap/Client"], function (Client) {
|
||||
requirejs([
|
||||
"Game/Client/Networker",
|
||||
"Lib/Vendor/SocketIO"
|
||||
],
|
||||
|
||||
function (Networker, SocketIO) {
|
||||
|
||||
var options = {
|
||||
"reconnect": false,
|
||||
|
|
@ -17,6 +22,8 @@ requirejs(["Bootstrap/Client"], function (Client) {
|
|||
],
|
||||
};
|
||||
|
||||
var client = new Client(location.href, options);
|
||||
inspector.client = client;
|
||||
var socket = SocketIO.connect(location.href, options);
|
||||
var networker = new Networker(socket);
|
||||
|
||||
inspector.networker = networker;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue