-
Notifications
You must be signed in to change notification settings - Fork 26
Description
There are several modules intertwined here, so I'm posting this here since this I think is the top module in the dependency graph I think.
This is me trying to start a ssb-server2 module, being a library that provides a CLI interface and daemon-like process for ssb, like ssb-server.
I started by more-or-less copying the structure of ssb-server -- https://github.com/planetary-social/ssb-server2/blob/efbbe600294695893551384981a6faa771a5091d/bin.js#L99
The call to ssb-client:
Client(config.keys, opts, (err, rpc) => {However I am stuck with this error when I start the server then try calling a method:
stack: 'Error: method:db,getStatus is not in list of allowed methods\n' +
This is after running NODE_ENV=test node ./bin.js start -- --path=./test-data in one terminal, then doing NODE_ENV=test node ./bin.js db.getStatus -- --path=./test-data in another terminal.
I feel like I need to do something with secret-handshake in order for this to work, but I'm not sure.