Bot releases are visible (Hide)
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
vue-class-component
from the build (d978515)Socket
decorator is no longer exported out of the root entry point of vue-socket.io-extended
, use the separate entrypoint instead:- import { Socket } from 'vue-socket.io-extended'
+ import Socket from 'vue-socket.io-extended/decorator'
Published by github-actions[bot] almost 4 years ago
Published by github-actions[bot] almost 4 years ago
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: '...', ... }