vtkWebViewPort: vtkOpenGLCamera has no attribute 'ResetCamera'

I am using the vkWebViewPort and the rpc "viewport.camera.reset" . Here is the error I get: "AttributeError("'vtkmodules.vtkRenderingOpenGL2.vtkOpenGLCamera' object has no attribute 'ResetCamera'",)"

I cannot find how the ResetCamera method referenced here is supposed to work. The view object is a vtkRenderWindow in all the examples I could find on internet.
Thanks for your help.

I made it works by applying the reset on the renderer and not the camera:

    def resetCamera(self, viewId):
        RPC callback to reset camera.
        view = self.getView(viewId)

Not sure how to directly use the VTK resetCamera without this modification.