I have a function like this:
`async getIpfsPeers() {
const peers = await this.node.swarm.peers();
console.log("List of connected peers: ", peers);
return peers;
}`
It’s inside a class, the class factory function is creating the IPFS instance. Bootstrap list works.
This is the output:
List of connected peers: []
Why am I seeing empty array?