Skip to content

Websocket question #173

@donniekerr

Description

@donniekerr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions