README.md in ionian-0.6.5 vs README.md in ionian-0.6.6

- old
+ new

@@ -36,12 +36,11 @@ ``` ruby # A simple IRC client. socket = Ionian::Socket.new \ - host: 'chat.freenode.net', - port: 6667, + host: 'chat.freenode.net:6667', # Break up the matches into named captures so it's easier # to sort through the server's responses. expression: /:(?<server>.*?)\s*:(?<msg>.*?)[\r\n]+/ # Log on to IRC and send a message. @@ -58,6 +57,21 @@ # Exit when the server has caught up. exit if match.msg.include? 'End of /NAMES list.' end end +``` + +### Simple Server + +``` ruby +host = 'localhost:5000' + +server = Ionian::Server.new interface: host do |client| + # Greet the connected client. + client.write "Welcome! You are connected to the server.\n" +end + +socket = Ionian::Socket.new host: host +# Retrieve the greeting message. +puts socket.read_all ```