README.rdoc in rawjsonrpc-0.1.3 vs README.rdoc in rawjsonrpc-0.1.4

- old
+ new

@@ -30,16 +30,18 @@ == Use server TCP simple Use the libary to serve functions over tcp ip. - client = RawJsonRpc::SimpleServerSocket.new(8080) - client.add_method("func1", method("do_stuff1")) # adds do_stuff1 as "func1" - client.add_method("foo", method(:bar)) # adds bar as foo - client.add_block("func2"){|a,b, *c| # adds a block with 2 args + server = RawJsonRpc::ServerSocket.new(8080) + server.add_method("func1", method("do_stuff1")) # adds do_stuff1 as +"func1" + server.add_method("foo", method(:bar)) # adds bar as foo + server.add_block("func2"){|a,b, *c| # adds a block with 2 +args #do stuff # and args as func2 } - client.serve() + server.serve() == use gserver TCP Lock in the stdlib for usage. The server delivers automaticly the functions. Beware of adding methods or blocks after starting.