You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example from #24 demonstrates a console log I'm seeing from Brython, "empty stack".
This seems innocuous in this case (as the callback's "self" parameter is well-formed).
But I'm also seeing it when using vue-socketio, and when using it there. Not only that, but callbacks don't seem to have a "self".
I've tried to make a minimal example below, but appreciate that setting up websockets is a bit non-standard.
This example also demonstrate's vue-socketio's inability to call the mutation functions in the Store object.
I wrote a JS equivalent of this which exhibited no issues, so it's clearly the py<->js interop.
Vue-Socket.io: Received socket.io-client instance
Vue-Socket.io: Vuex adapter enabled
Vue-Socket.io: Vuex socket mutations enabled
Vue-Socket.io: Vuex socket actions enabled
Vue-Socket.io: Vue-Socket.io plugin enabled
Vue-Socket.io: #connect subscribe, component: undefined
vue.min.js:6 Error: callback must be a function
at t.value (vue-socketio.min.js:14:12327)
at vue-socketio.min.js:14:9569
at Array.forEach (<anonymous>)
at Cn.mounted (vue-socketio.min.js:14:9495)
at Be (vue.min.js:6:11407)
at Qt (vue.min.js:6:25438)
at vue.min.js:6:68707
at Cn.$mount (vue.min.js:6:68726)
at Cn.$mount (vue.min.js:6:94030)
at Cn.t._init (vue.min.js:6:33111)
Vue-Socket.io: Broadcasting: #connect, Data:
empty stack
App.connect(None, (), {})
There are a few things here:
The "callback must be a function" error.
Which is being triggered here in vue-socketio.
The callback in App prints 'None' for its value of 'self'
The "empty stack" warning from Brython when using callbacks.
I appreciate vue-socketio isn't your library, but I'm not sure where else to go for assistance.
I've tried poking around inside the vue.py, but I simply don't understand most of what it is attempting to do.
The text was updated successfully, but these errors were encountered:
FYI, I've moved over to native JS vue since I can't overcome these issues, so this isn't a high priority at the moment.
But I'd like to understand how to fix this so I can help improve the bindings.
The example from #24 demonstrates a console log I'm seeing from Brython, "empty stack".
This seems innocuous in this case (as the callback's "self" parameter is well-formed).
But I'm also seeing it when using vue-socketio, and when using it there. Not only that, but callbacks don't seem to have a "self".
I've tried to make a minimal example below, but appreciate that setting up websockets is a bit non-standard.
This example also demonstrate's vue-socketio's inability to call the mutation functions in the Store object.
I wrote a JS equivalent of this which exhibited no issues, so it's clearly the py<->js interop.
server.py
index.html
Browser console output:
There are a few things here:
The "callback must be a function" error.
Which is being triggered here in vue-socketio.
The callback in App prints 'None' for its value of 'self'
The "empty stack" warning from Brython when using callbacks.
I appreciate vue-socketio isn't your library, but I'm not sure where else to go for assistance.
I've tried poking around inside the vue.py, but I simply don't understand most of what it is attempting to do.
The text was updated successfully, but these errors were encountered: