Open gurjit03 opened 7 years ago
Have you tried using fibers/Future to handle async response?
Hi @gurjit03 ! I'm faced with same problem. Have you found a solution? Could you please share it? Thanks!
@achirkof It's hard to recall. Since it's quite long ago. I am not in touch with the meteor restivus since then. But as far as I remember, I tried some other approach to accomplish the task.
@gurjit03 I have solved it finally. Thank you for feedback.
@achirkof then kindly share it might be helpful for people coming to this thread.
I am in need to do processing of stream where I need to convert my pdf data to base64 encoded string to be send to the client on his request.
Function to get pdf data
API endpoint
I want to return the response of the Promise as my response of endpoint , but it doesn't seems to work correctly, any suggestion @kahmali ?