v3.0.0
Options support
This release introduces options support - hooray 🎉 . That means you can tweak the library to better fit your project needs. So now you can:
- use custom prefix for actions (instead of default
socket_
), closes #25 - use custom prefix for mutations (instead of default
SOCKET_
), closes #25 - use custom function to convert event to action (instead of default camelcase)
- use custom function to convert event to mutation (instead of default uppercase)
Read more in configuration section. That's all for now
Upgrade guide
If you are using store - keep reading, if not - stop reading right here because there nothing to update for you 😄.
Previously it was possible to pass store as third argument to enable vuex integration but now third argument is an options object. So, you need to pass store
as part of options to enable it.
In short:
- Vue.use(VueSocketio, io('http://socketserver.com:1923'), store);
+ Vue.use(VueSocketio, io('http://socketserver.com:1923'), { store });