From 87c0702959f29c2b1ec6b34d011bcd9ee435c73c Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Thu, 12 Mar 2020 01:31:54 +0530 Subject: [PATCH 1/2] :recycle: Refactor --- components/realtime/mqtt.vue | 11 +- components/realtime/socketio.vue | 5 +- components/realtime/sse.vue | 160 +++++++++++++++ components/realtime/websocket.vue | 182 +++++++++++++++++ package-lock.json | 12 +- pages/realtime.vue | 329 +----------------------------- 6 files changed, 362 insertions(+), 337 deletions(-) create mode 100644 components/realtime/sse.vue create mode 100644 components/realtime/websocket.vue diff --git a/components/realtime/mqtt.vue b/components/realtime/mqtt.vue index 36beb5d0e..73edcad42 100644 --- a/components/realtime/mqtt.vue +++ b/components/realtime/mqtt.vue @@ -19,10 +19,11 @@ +