summaryrefslogtreecommitdiff
path: root/client/src/JumpStorm.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/JumpStorm.ts')
-rw-r--r--client/src/JumpStorm.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/JumpStorm.ts b/client/src/JumpStorm.ts
index 45ea163..d1d1013 100644
--- a/client/src/JumpStorm.ts
+++ b/client/src/JumpStorm.ts
@@ -11,9 +11,16 @@ import {
export class JumpStorm {
private game: Game;
+ private socket: WebSocket;
constructor(ctx: CanvasRenderingContext2D) {
this.game = new Game();
+ this.socket = new WebSocket("ws://localhost:8080");
+
+ this.socket.onopen = () => {
+ this.socket.send("gaming");
+ console.log("OPENED SOCKET");
+ };
[
this.createInputSystem(),