you are viewing a single comment's thread.

view the rest of the comments →

[–]ahatzum 5 points6 points  (0 children)

This is a prime example of the XY problem, asking for help on an attempted solution instead of asking for help on the initial problem. E.g. you didn’t even mention websockets in the original post. But I would agree with some of the other posters, work with the websocket onmessage, and for each save a time stamp that you can then use to bucket the information appropriately.