From b38696596a5d0a9951fc02dce61a7b89fe6ffce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 7 Nov 2020 13:26:07 +0100 Subject: [PATCH] add websocket and webrtc to state. --- src/app.vue | 6 ++++++ src/components/canvas.vue | 29 ++++++++++++++++++----------- src/types/state.ts | 2 ++ 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/src/app.vue b/src/app.vue index fbc8e904..af3f292b 100644 --- a/src/app.vue +++ b/src/app.vue @@ -50,5 +50,11 @@ this.container.style.width = this.width this.container.style.height = this.height } + + mounted() { + this.neko.events.on('connected', () => { + console.log('connected...') + }) + } } diff --git a/src/components/canvas.vue b/src/components/canvas.vue index 6c94edcf..f14e4ec0 100644 --- a/src/components/canvas.vue +++ b/src/components/canvas.vue @@ -1,9 +1,8 @@