Since a StreamLayer can only support one geometryType, you won't be able to use a point layer to display lines. However, you can mimic this by adding a GraphicsLayer, getting the point data from your StreamLayer, creating a line from those points, and adding it to the GraphicsLayer.
The trickiest part of that is getting the point data from the StreamLayer, but even that's not all that bad. To do this, you'll need to get a reference to its associated StreamLayerView. The StreamLayerView has a data-received event that fires when new features are received. It also has a queryFeatures function which you can also use to get the points from your StreamLayer. Between these, you'd have all you need to create and display the track line(s) in the GraphicsLayer.