vue-stomp
Stomp (Websokct) with send message timeout monitor plugin for VueJS.
Install
$3
You can install it via
NPM.
``
$ npm install vue-stomp
`
$3
Download zip package and unpack and add the vue-stomp.js
file to your project from dist folder.
`
https://github.com/FlySkyBear/vue-stomp/archive/master.zip
`
Usage
Register the plugin, it will connect to /
`
js
import VueStomp from "vue-stomp";
Vue.use(VueStomp, endpoint);
`
or connect to other address:
`
js
Vue.use(VueStomp, "http://otherserver:8080/endpoint");
`
##Memo
WM: WithMonitor
Use it in your components:
`
html
`
Build
This command will build a distributable version in the dist
directory.
`
bash
npm run build
`
Test
`
bash
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-stomp is available under the
MIT license.
Contact
Copyright (C) 2016 FlySkyBear