Question about configurator.getRendererModel()

Within a configurator script, I want to obtain the render model as a byte array. How can I obtain it with configurator.getRendererModel() ?

https://paramate.trinckle.com/docs/js/configurator_function_ref_getRendererModel.php

Here is the solution:

configurator.getRendererModel(renderSessionId, function(res)
  {
     arr = new Uint8Array(res);
  }, 'arraybuffer');

This is how you can obtain the session id:

configurator.initialize(function(res)
  {
    renderSessionId = res.renderSessions[0].sessionId;
  });