> streamSock.send("Hello\n")
> ArgumentError: wrong number of arguments (1 for 2)

http://rubydoc.ruby-forum.com/doc/ruby-1.9.1-p129/classes/BasicSocket.html#M002537

might be helpful.

I think what you want is "write" which writes an entire string 
[basically blocks until the entire string is written].
-- 
Posted via http://www.ruby-forum.com/.