Sunday, 14 May 2017

NodeJS - Get live logs on webpage from server

Have a specific requirement in NodeJS where a webform (using Express) is submitted to the server application which makes ~50-100 API calls based on the form data. The whole process takes around 3-5 mins while the end user waits. Since the wait time is long, would like to show live logs after form submission.

Something like :

  • Form data processing started...
  • Created user...
  • Assigned role to user....
  • Connecting to friends of user...
  • End of process. Request successfully completed...

Which would be the best way to accomplish this.

Thanks in advance.



via Vinay

No comments:

Post a Comment