All of these examples make use of the Socket library from the Ruby Standard Library (stdlib) More specifically, the TCPServer and TCPSocket objects.
-
Start your server
ruby server.rb -
To connect to your server, open your browser to http://localhost:2000
-
See what happens in your terminal and in browser.
The assignment is available in the wiki https://github.com/bitmakerlabs/web-server/wiki/Web-Server-Assignment