mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
Update README.MD
- Add options example using connection string
This commit is contained in:
parent
079d8aef6e
commit
68c5a0b7e9
1 changed files with 3 additions and 3 deletions
|
@ -59,12 +59,12 @@ import store from './store'
|
|||
import App from './App.vue'
|
||||
import VueSocketIO from 'vue-socket.io'
|
||||
|
||||
const options = { path: '/my-app/' }; //Options object to pass into SocketIO
|
||||
|
||||
Vue.use(
|
||||
new VueSocketIO({
|
||||
debug: true,
|
||||
connection: SocketIO('http://metinseylan.com:1992', {
|
||||
path: '/my-app/'
|
||||
}),
|
||||
connection: SocketIO('http://metinseylan.com:1992', options), //options object is Optional
|
||||
vuex: {
|
||||
store,
|
||||
actionPrefix: "SOCKET_",
|
||||
|
|
Loading…
Add table
Reference in a new issue