because shithub doesnt have ipv6 support
Find a file
2018-11-18 14:31:54 +03:00
dist small changes and logo 2018-11-18 13:44:07 +03:00
docs small changes and logo 2018-11-18 13:44:07 +03:00
src added vuex support 2018-10-28 18:56:16 +03:00
.gitignore added vuex support 2018-10-28 18:56:16 +03:00
.npmignore added vuex support 2018-10-28 18:56:16 +03:00
LICENSE small changes and logo 2018-11-18 13:44:07 +03:00
package.json small changes and logo 2018-11-18 13:44:07 +03:00
README.md installation added 2018-11-18 14:31:54 +03:00
webpack.config.js small changes and logo 2018-11-18 13:44:07 +03:00

Vue-Socket.io is a socket.io integration for Vuejs, easy to use, supporting Vuex and component level socket consumer managements

Demo

Installation

npm install vue-socket.io --save
import Vue from 'vue'
import store from './store'
import App from './App.vue'
import VueSocketIO from 'vue-socket.io'

Vue.use(new VueSocketIO({
    debug: true,
    connection: 'http://metinseylan.com:1992',
    vuex: {
        store,
        actionPrefix: 'SOCKET_',
        mutationPrefix: 'SOCKET_'
    }
}))

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');