interledger-deprecated / ilp-core

Core ILP module — handles ledger abstraction and quoting
Other
8 stars 5 forks source link

Remove waitForConnection? #11

Open emschwartz opened 8 years ago

emschwartz commented 8 years ago

If the ledger plugin's connect method returns a Promise that resolves when it's connected, why not just do the same for core? Right now the API requires you to call:

client.connect()
client.waitForConnection().then(...)

Instead, we could just have:

client.connect().then(...)