-
Notifications
You must be signed in to change notification settings - Fork 496
Latest version breaks library #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you very match! You saved my day! |
i spend like 2 days to figure it out what went wrong in my latest project which create 2 days ago. all the code is the same but last project just won't work. |
Since last version component methods in sockets: {
connect: function () {
console.log('socket connected')
},
customEmit: function (data) {
console.log('this method was fired by the socket server. eg: io.emit("customEmit", data)')
}
}, I think it is related to original issue reported ... ? |
please fix it , same bug |
When I replace this.sockets.subscribe by this.sockets.listener.subscribe and the error disappear. |
i lost all day.............. please, fix, ver 3.0.8 not work correctly |
this lib not support ack callback? |
please fix it , same bug |
Until the bug is fixed, everyone who has a similar problem and don't wants to change own code - can install the version
And lock version in packege.json: I have the same problem but this version is not broken yet. Problem started from this changes. |
very very thank you!!!!!!! |
I am trying to use workaround |
Version 3.0.9 is still broken for me, needed to revert to 3.0.7 to get it working again. |
Latest version 3.0.9 with same bug here. I'll try @goliafrs workaround. |
@goliafrs is correct in the location, it originates from commit 8988085 "Handle more than one namespace". The changes to the mixin file do not properly add the event listeners for all configurations of the plugin, as well as it contains a number of inconsistencies with its documentation. I had submitted a PR, #242, in March, both adding namespacing for Vuex modules as well as reverting this specific commit. For any still facing issues, I echo the suggestion to revert to |
Just want to add on that I just installed the latest version |
Describe the bug
When using the latest version I get the following error:
TypeError: o.sockets.subscribe is not a function
This is caused when I try to run
this.sockets.subscribe('name', ...)
Expected behavior
The app is supposed to access the sockets via
this.sockets.
as it did in previous versionDesktop (please complete the following information):
Additional context
Reverting to previous version 3.0.7 solved the issue.
I could not pinpoint the issue in source code due to ... minimization?
The text was updated successfully, but these errors were encountered: