MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / PeerList

Method PeerList

IceFireDB-PubSub/pkg/ppubsub/pubsubStore.go:299–302  ·  view source on GitHub ↗

A method of PubSub that returns a list of all peer IDs connected to it

()

Source from the content-addressed store, hash-verified

297// A method of PubSub that returns a list
298// of all peer IDs connected to it
299func (cr *PubSub) PeerList() []peer.ID {
300 // Return the slice of peer IDs connected to chat room topic
301 return cr.pstopic.ListPeers()
302}
303
304// A method of PubSub that updates the chat
305// room by subscribing to the new topic

Callers 1

printPeerMethod · 0.95

Calls 1

ListPeersMethod · 0.80

Tested by

no test coverage detected