Is there a Peer callback?

Hi,

Anyone know if there is a callback or notification that when a new peer connects/disconnect to my node? I want be able to send message to the peers connected to my node, but since peers are dynamic changed, the callback will be much better than always query for all peers.

I guess no, but you can do a fork or add cronjob to check ipfs swarm peers changes.