mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
Update README.md
It seems that `import SocketIO from "socket.io-client"` is missing from the examples.
This commit is contained in:
parent
4fba4071f7
commit
e63637522d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue