I need to update a table in real time with data coming from a web socket.
What am I doing now, every time I get data on the socket, I add it to the string and create a two-dimensional array that is used to display the table using ng-repeat.
Performance using this approach is rather slow. In addition, this approach assumes that I receive the message in sequence, however I do not receive data in the correct sequence.
Would it be better to format the data as html or json and send it via a web socket or is it better to send the original data?
What would be the best way to do this?
source share