examples/echo_client.rb in celluloid-io-0.11.0 vs examples/echo_client.rb in celluloid-io-0.12.0

- old
+ new

@@ -8,15 +8,15 @@ include Celluloid::IO def initialize(host, port) puts "*** Connecting to echo server on #{host}:#{port}" - @socket = TCPSocket.from_ruby_socket(::TCPSocket.new(host, port)) + # This is actually creating a Celluloid::IO::TCPSocket + @socket = TCPSocket.new(host, port) end def echo(s) @socket.write(s) - actor = Celluloid.current_actor @socket.readpartial(4096) end end