We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How exactly can I listen to events if I do not have a store?
I've tried this in my created method if my main component, but it's not firing:
this.$options.sockets.SOCKET_ONMESSAGE = (data) => {console.log("a message")}
The text was updated successfully, but these errors were encountered:
try:
this.$options.sockets.onmessage = (data) => {console.log("a message")}
see https://github.com/nathantsoi/vue-native-websocket/blob/master/src/Observer.js#L21-L27 for more
Sorry, something went wrong.
No branches or pull requests
How exactly can I listen to events if I do not have a store?
I've tried this in my created method if my main component, but it's not firing:
this.$options.sockets.SOCKET_ONMESSAGE = (data) => {console.log("a message")}
The text was updated successfully, but these errors were encountered: