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 App from './App.vue'
|
||||||
import VueSocketIO from 'vue-socket.io'
|
import VueSocketIO from 'vue-socket.io'
|
||||||
|
|
||||||
|
const options = { path: '/my-app/' }; //Options object to pass into SocketIO
|
||||||
|
|
||||||
Vue.use(
|
Vue.use(
|
||||||
new VueSocketIO({
|
new VueSocketIO({
|
||||||
debug: true,
|
debug: true,
|
||||||
connection: SocketIO('http://metinseylan.com:1992', {
|
connection: SocketIO('http://metinseylan.com:1992', options), //options object is Optional
|
||||||
path: '/my-app/'
|
|
||||||
}),
|
|
||||||
vuex: {
|
vuex: {
|
||||||
store,
|
store,
|
||||||
actionPrefix: "SOCKET_",
|
actionPrefix: "SOCKET_",
|
||||||
|
|
Loading…
Add table
Reference in a new issue