WebSocket Feed Format

Problem:
I'm currently building a real time chart that would use third-party websocket feed. I've checked out examples provided and I'm facing a pretty common issue I guess but I didn't find a clear solution to my use case.

usecase:
- websocket output is collected through a vanilla javascript event listener
- this output is not natively formatted to be ingested by ZingChart using transport property 'websockets'

Questions:
- Is there a way to format somewhere and keep using transport property 'websockets'?
- If it is not possible, am I obliged to use 'appendseriesvalues' workaround inside the listener?

Solution:
There is no automated format, if the package received is not in the supported format (just values) then you will need to parse it yourself and use the ZingChart APIs to do whatever you need (append, update, etc).

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us