mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
run prettier format
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import {RippleAPIBroadcast} from '../../src';
|
||||
import {RippleAPIBroadcast} from '../../src'
|
||||
|
||||
function main() {
|
||||
const servers = ['wss://s1.ripple.com', 'wss://s2.ripple.com'];
|
||||
const api = new RippleAPIBroadcast(servers);
|
||||
const servers = ['wss://s1.ripple.com', 'wss://s2.ripple.com']
|
||||
const api = new RippleAPIBroadcast(servers)
|
||||
api.connect().then(() => {
|
||||
api.getServerInfo().then(info => {
|
||||
console.log(JSON.stringify(info, null, 2));
|
||||
});
|
||||
console.log(JSON.stringify(info, null, 2))
|
||||
})
|
||||
api.on('ledger', ledger => {
|
||||
console.log(JSON.stringify(ledger, null, 2));
|
||||
});
|
||||
});
|
||||
console.log(JSON.stringify(ledger, null, 2))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
main();
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user