Skip to content

Instantly share code, notes, and snippets.

@short-matthew-f
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save short-matthew-f/fd7536ba31222ee913ca to your computer and use it in GitHub Desktop.

Select an option

Save short-matthew-f/fd7536ba31222ee913ca to your computer and use it in GitHub Desktop.

Think about:

  1. What is the difference between a client and a server?
  2. What do we need to do to have our client connect to a server? What's the minimum amount of information necessary?
  3. What sort of events can a client & server listen to?
  4. Are there server.on events?
  5. What happens when data is sent between a client and a server? Do we need to process it?

Do:

  1. Use process.argv to get a string from the user to send to the server.
  2. Have the server keep track of all messages ever sent to it.
  3. Respond to the client with a random message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment