google earth event equivalent

I have been looking around but I cannot find in Cesiumjs something equivalent to the google earth event shown here.

google.earth.addEventListener(ge, ‘frameend’, callBackFunction);

I use this to update the camera view based on parameters that are constantly changing. I have the camera set up as below.

viewer.camera.setView({
destination : Cesium.Cartesian3.fromDegrees(pos[1],pos[0],pos[2]),
orientation: {
heading : Cesium.Math.toRadians(d[1]),
pitch : Cesium.Math.toRadians(d[0]),
roll : Cesium.Math.toRadians(d[2])
}
});

So the only issue is when and how to call the function.

Any suggestions would be appreciated.

I think what you are looking for is postUpdate or postRender

https://cesium.com/docs/cesiumjs-ref-doc/Scene.html#postRender

Thanks. It worked like a charm.