Vue-Socket-io (socket.io) plugin for VueJS. This is a fork of Vue-Websocket by icebob
Install
NPM
You can install it via NPM.
$ npm install vue-socket-io
Usage
Register the plugin, it will connect to /
;Vue;
or connect to other address:
Vue;
You can pass options too:
Vue;
Use it in your components:
Build
This command will build a distributable version in the dist
directory.
npm run build
Test
npm test
Contribution
Please send pull requests improving the usage and fixing bugs, improving documentation and providing better examples, or providing some testing, because these things are important.
License
vue-socket-io is available under the MIT license.
Contact
Copyright (C) 2017 Daksh