I am trying to get all peers that are currently connected to me, but it says connections is deprecated.
const peer = new Peer('my_id');
const connections = peer.connections;
Documentation says: We recommend keeping track of connections yourself rather than relying on this hash.
Let's say I keep track of all peers id in array. How should I handle the ids so that I get the same result as with peer.connections ?
Example:
peer.connections returns: 
What method do I need to call to get the same results from peer id in my array?