UNPKG

@awamwang/vue-socket.io-extended

Version:

Socket.io bindings for Vue.js and Vuex (inspired by Vue-Socket.io)

2 lines (1 loc) 285 B
import{createDecorator as t}from"vue-class-component";var o=function(o){return t((function(t,e){!function(t,o,e){t.methods&&Object.prototype.hasOwnProperty.call(t.methods,e)&&(t.sockets=t.sockets||{},t.sockets[o]=t.methods[e])}(t,o&&"string"==typeof o?o:e,e)}))};export{o as default};