Bot releases are hidden (Show)
Published by probil over 4 years ago
vue
to v2.6.11
vue-class-component
to v7.2.3
eslint
to v7
rollup
to v2.9.1
jest
to v26.0.1
babel
to v7.9.6@vue/test-utils
to v1.0.2Published by probil almost 5 years ago
Published by probil about 5 years ago
this.$socket.connected
and this.$socket.disconnected
support (Closes #17) Docs
@Socket()
decorator support (Closes #357) Docs
socket.io-client
instance moved from this.$socket
to this.socket.client
. Please check usages before upgrading- this.$socket.emit('anything');
+ this.$socket.client.emit('anything');
- this.$options.sockets.event_name = (payload) => {
- console.log(payload)
- });
+ this.$socket.$subscribe('event_name', (payload) => {
+ console.log(payload)
+ });
- const VueSocketIOExt = require('vue-socket.io-extended');
+ const VueSocketIOExt = require('vue-socket.io-extended').default;
const io = require('socket.io-client');
const socket = io('http://socketserver.com:1923');
Vue.use(VueSocketIOExt, socket);
Published by probil over 5 years ago
Published by probil over 5 years ago
babel.config.js
Published by probil almost 6 years ago
Published by probil about 6 years ago
You can now access default plugin options if you need it (e.g. re-use default eventToActionTransformer
function):
import VueSocketIOExt from 'vue-socket.io-extended';
VueSocketIOExt.defaults // -> { actionPrefix: '...', mutationPrefix: '...', ... }
Published by probil over 6 years ago
This release introduces options support - hooray π . That means you can tweak the library to better fit your project needs. So now you can:
socket_
), closes #25SOCKET_
), closes #25Read more in configuration section. That's all for now
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 });
Published by probil over 6 years ago
window
directly)mixin
as we can mock proxy support now[email protected]
& [email protected]
Published by probil over 6 years ago
codecov
to gather code coverage reportsEvenEmitter
class from global EvenEmitter
instanceEventEmitter
, Observer
and mixin
by unit testsPublished by probil over 6 years ago
babel-preset-env
instead of babel-preset-es2015
(which is deprecated now)jest
Published by probil over 6 years ago
rollup
instead of webpack
package-lock
to git, better npm@5
support.babelrc
filePublished by probil over 6 years ago
vue-socket.io
npm