I need to draw a line between a points current and previous position

My project updates the position of points from CZML updates sent from a websocket server. This works using the updates and HTML below but I was wondering if it was possible to draw a line between the old and new position of a point. Will I be able to adapt this method to do so or will I need to try something else? Any advice on this or a better way to employ my current method would be helpful.

An Example of the received updates:

client HTML:

  var viewer = new Cesium.Viewer('cesiumContainer');
  var czmlStream = new Cesium.CzmlDataSource();
  var ws = new WebSocket("ws://localhost:9292/czml-stream");
        ws.onmessage = function(update){


You can try to use a path. Here is an example: