Client Server Communication in Node.js
Learn how to establish a connection between a client and server in Node.js and pass messages between them.
We'll cover the following...
We'll cover the following...
Now, we’re ready to start building our application. First, let’s create a new file called index.js inside the tweet_stream folder to load the modules we’ll use:
To use the Twitter API, we need to request a consumer key and an access token on the Twitter Developer Website. Once we have that, we will create a new Twit object with a configuration object, like this:
Now, we can create the onConnect function, which will do all the ...