title: Trying to understand use cases of web sockets in a node app
body: <p>I was told a good use of websockets would be if you had an app that showed stock prices, which fluctuate constantly.  You’d want all the clients to update these new prices at the same time so on the server, you can emit an event that updates these stocks and have all the clients listen for these events so that they get the new data to display.</p>
  <p>On the server though, wouldn’t you constantly need to be polling the api you’re getting these stock prices to see if there’s a change and <em>then</em> emit these out to the clients?  I don’t know how you’d get away without constantly polling an outside api to get the data you need before you send an emitted event to your clients.</p>