From 45860773e4edfc7f366a88f584e5c460738ddce0 Mon Sep 17 00:00:00 2001 From: dailing <1432559604@qq.com> Date: Mon, 16 Mar 2020 22:19:25 +0800 Subject: [PATCH] Update README.md (#241) It seems that `import SocketIO from "socket.io-client"` is missing from the examples. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 803cb6c..968852a 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ import Vue from 'vue' import store from './store' import App from './App.vue' import VueSocketIO from 'vue-socket.io' +import SocketIO from "socket.io-client" Vue.use(new VueSocketIO({ debug: true, @@ -58,6 +59,7 @@ import Vue from 'vue' import store from './store' import App from './App.vue' import VueSocketIO from 'vue-socket.io' +import SocketIO from "socket.io-client" const options = { path: '/my-app/' }; //Options object to pass into SocketIO