Update public/sketch.js
Browse files- public/sketch.js +3 -3
public/sketch.js
CHANGED
@@ -32,14 +32,14 @@ function setup() {
|
|
32 |
// client-side
|
33 |
socket.on("connect", () => {
|
34 |
console.log(socket.id); // x8WIv7-mJelg7on_ALbx
|
35 |
-
|
|
|
|
|
36 |
console.log(arg[0])
|
37 |
space_uri = arg[0];
|
38 |
hf_tkn = arg[1];
|
39 |
grAPI = new GRAPI(space_uri, hf_tkn);
|
40 |
});
|
41 |
-
});
|
42 |
-
|
43 |
|
44 |
Draws = new DrawHandler();
|
45 |
AS = new AnimSys(12, 12, 30, 8);
|
|
|
32 |
// client-side
|
33 |
socket.on("connect", () => {
|
34 |
console.log(socket.id); // x8WIv7-mJelg7on_ALbx
|
35 |
+
|
36 |
+
});
|
37 |
+
socket.on("hello", (arg) => {
|
38 |
console.log(arg[0])
|
39 |
space_uri = arg[0];
|
40 |
hf_tkn = arg[1];
|
41 |
grAPI = new GRAPI(space_uri, hf_tkn);
|
42 |
});
|
|
|
|
|
43 |
|
44 |
Draws = new DrawHandler();
|
45 |
AS = new AnimSys(12, 12, 30, 8);
|