diff --git a/README.md b/README.md index 11c5c79..f6d8c7a 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,25 @@ npm install vue-socket.io --save ``` +``` javascript +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'); +``` \ No newline at end of file