If you want to execute after set period of time, timers are used for that. Timers are globally available in node.js. Check official documentation here. Three types of timers are: setTimeout() setImmediate() setInterval(); setTimeout() - "When I say so!" used for scheduling execution of code after set of milliseconds. accepts set of arguments - first arg. … Continue reading How to use Timers in Node.js?
There is nothing new about sending a request to a REST API and fetching a response. In this blog we will show how can we make an asynchronous call to a API, which means your node.js code will be able to perform other operations while it requests sent to an API fetched the response. What … Continue reading Asynchronous call to a REST API using Node.js and using the Promises.
Callback In the callback model you make a request and provide a function to be called when the request is completed. Which means one request and one reply. Also in the callback approach you won't receive any result until you receive all the results. Like shown in the example below, until it iterates over all … Continue reading Node.js: Callbacks v/s Events
Searching for similar strings within an array or object map in Node.js
Creating an Object map in node.js and how can we access the static and dynamic objects.
On getting the GET request from the client, the server responds, by revealing some information about itself, and metadata about the data asked by the client. The response from REST API which is in the form of URL can be obtained by implementing an http get method.
Using Dialogs and Prompts to build a conversational BOT on Azure . A bot communicates with a user via conversations. To manage conversational flow we use dialogs.
While invoking Lambda function through AWS Lex we generally get below error. An error has occurred: Received error response from Lambda: Handled There could be many reasons for this error to occur. Suppose lambda has following callback response function in node.js: Now according to the AWS docs here the fullfilmentState is a mandatory key field also … Continue reading Resolved! – AWS Lex: ‘An error has occurred: Received error response from Lambda: Handled’