examples/echo_server.rb in lightio-0.3.2 vs examples/echo_server.rb in lightio-0.4.0.pre
- old
+ new
@@ -1,6 +1,8 @@
# Example from https://github.com/socketry/nio4r/blob/master/examples/echo_server.rb
# rewrite it in lightio for demonstrate
+# this example demonstrate LightIO Libraries API
+# look LightIO::Library namespace to find more
require 'lightio'
class EchoServer
def initialize(host, port)