N
N
Nikolay372019-05-27 13:23:29
Node.js
Nikolay37, 2019-05-27 13:23:29

How to process JSON asynchronously?

I receive JSON data from websocket (via pusher node js), then I process it and set conditions. How can this be done asynchronously? Those. for example, 2 options come, at the same time, according to the conditions, both are suitable and I need to send a request for both options and get an answer instantly, and not wait until the 1st request passes, then the second one starts

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question