vue-websocket0.2.3 • Public • Published
A socket.io plugin for Vue.js.
You can either install this package with
npm, or manually by downloading the primary plugin file.
$ npm install -S vue-websocket
Download the production
vue-websocket.js file. This link is a mirror of the same file found in the
dist directory of this project.
Register the plugin. By default, it will connect to
Or to connect to another address:
You can also pass options:
To use it in your components:
This command will build a distributable version in the
$ npm run build
This package uses
karma for testing. You can run the tests like so:
$ npm test
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.
vue-websocket is available under the MIT license.
Copyright © 2018 Icebob