A method of PubSub that returns a list of all peer IDs connected to it
()
| 297 | // A method of PubSub that returns a list |
| 298 | // of all peer IDs connected to it |
| 299 | func (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 |