From f6e98fcf1d2ec0e146fb6d21f4adf043fa03d4b2 Mon Sep 17 00:00:00 2001 From: Paul-Louis NECH Date: Wed, 8 Apr 2020 20:57:19 +0200 Subject: [PATCH] feat(client): MVP Socket.io ping --- client/package.json | 4 +++- client/src/App.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++--- client/src/ListenToSockets.vue | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ client/src/components/HelloWorld.vue | 58 +--------------------------------------------------------- server/app.py | 29 ++++++++++++----------------- server/ws.py | 11 ++++++++++- 6 files changed, 131 insertions(+), 79 deletions(-) create mode 100644 client/src/ListenToSockets.vue diff --git a/client/package.json b/client/package.json index cd1378a..1dfd5a4 100644 --- a/client/package.json +++ b/client/package.json @@ -9,9 +9,11 @@ }, "dependencies": { "core-js": "^3.6.4", + "es6-promise": "^4.2.8", "socket.io-client": "^2.3.0", "vue": "^2.6.11", - "vue-socket.io": "^3.0.7" + "vue-socket.io": "^3.0.7", + "vuex": "^3.1.3" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.3.0", diff --git a/client/src/App.vue b/client/src/App.vue index fb03c6e..8f77245 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,19 +1,66 @@