How to create a portal on an external server where the UiPath Assistant is running

UiPathRobot.js is a client side library only. It relies on your having an attended robot available on the same machine that runs the JS client.