Retrieving and Sending Tweets in Node.js
Learn about the function that is used to pass data and how the locations of earthquakes can be filtered through keywords.
We'll cover the following
We’re using the streaming Twitter client for Node.js twit
to connect to Twitter and search for tweets. From now on, all the code in the server will happen inside the onConnect
function, because it assumes that a connection to a WebSocket is already established.
Let’s initialize the stream of tweets in index.js
:
Get hands-on with 1400+ tech skills courses.