uber-archive / multitransport-jsonrpc

JSON-RPC Client (Node.js & Browser) and Server (Node.js) aim at "natural looking" server and client code.
116 stars 22 forks source link

Added support for calling external methods without using a selector #67

Open jeroenvollenbrock opened 9 years ago

jeroenvollenbrock commented 9 years ago

This commit adds support for direct addressing using the dot syntax of javascript instead of the square syntax.

This makes it possible to use jsonRpcTcpClient.rpc.methodList() instead of jsonRpcTcpClient["rpc.methodList"]()

coveralls commented 9 years ago

Coverage Status

Coverage decreased (-0.2%) to 89.77% when pulling 5434b87100fc143d06d569967a92f4df97f057ac on jeroenvollenbrock:master into ce3afa4d631a5db19ad0293dc6e924fe52d63aff on uber:master.

dfellis commented 9 years ago

Somehow I missed this in my inbox. Sorry for just addressing this change now.

Can you add a unit test to guard against regressions for this behavior? I'll merge after that. :)