Skip to content
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

Websocket question #173

Open
donniekerr opened this issue Aug 26, 2022 · 1 comment
Open

Websocket question #173

donniekerr opened this issue Aug 26, 2022 · 1 comment

Comments

@donniekerr
Copy link

I have a websocket that is subscribed to messages from MQTT topic. On receipt of a new message (timestamp and key:value pair), How do I add the new message to the data in this example?
https://nagix.github.io/chartjs-plugin-streaming/latest/tutorials/vue/stream.html

It isn't clear to me how to add the new message since the chart uses it's own onRefresh. I haven't found a real-world example using Vue that doesn't use random generators.
I'd appreciate some help
Thank you

@jdhillwan
Copy link

You can fetch the chart instance when data received on socket and on that instance you can push the data and update the chart then.

you can refer this one although the issue is different on this link but this is the solution of your query.
#Robloche#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants