From d4bfd173aa1e9142f2034d18cbfde440c43bb790 Mon Sep 17 00:00:00 2001 From: Raccoon Date: Tue, 14 Apr 2020 13:12:02 +0800 Subject: [PATCH] refactor: wrap socket.io client to RealtimeClient class Signed-off-by: Raccoon --- public/js/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/index.js b/public/js/index.js index b437c72b..831d9c04 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -21,6 +21,8 @@ import Idle from '@hackmd/idle-js' import { Spinner } from 'spin.js' +import io from 'socket.io-client' + import { checkLoginStateChanged, setloginStateChangeEvent