derekcollison/nats — pull request #31 by stefanschneider (2012-01-30 13:22:10+00:00)
Title: added nats-request for executables

An example where it could be useful is when want to discover all vcap components connected to the NATS:

$ nats-request vcap.component.discover
[#1] Replied with : '{"type":"DEA","index":null,"uuid":"0092a091d1937275840ac955a81f6926","host":"192.168.1.124:42757","credentials":["xxxx","yyy"],"start":"2012-01-30 04:41:33 +0200","uptime":"0d:10h:23m:58s"}'
[#2] Replied with : '{"type":"RaaS-Node","index":0,"uuid":"0-4e2a965d10d5ad7190a52bf68f01b4a1","host":"192.168.1.124:49683","credentials":["xxx","yyy"],"start":"2012-01-30 04:41:37 +0200","uptime":"0d:10h:23m:54s"}'
...