mirror of
https://github.com/MetinSeylan/Vue-Socket.io.git
synced 2025-04-16 15:21:28 +02:00
fix: add listeners to custom socket functions on the created
hook instead of beforeCreate
hook in the mixin lifecycle
This commit is contained in:
parent
6f16d6c0b4
commit
0edf7322e6
2 changed files with 2 additions and 2 deletions
2
dist/build.js
vendored
2
dist/build.js
vendored
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,7 @@ export default {
|
|||
Vue.prototype.$socket = observer.Socket;
|
||||
|
||||
Vue.mixin({
|
||||
beforeCreate(){
|
||||
created(){
|
||||
let sockets = this.$options['sockets']
|
||||
|
||||
this.$options.sockets = new Proxy({}, {
|
||||
|
|
Loading…
Add table
Reference in a new issue