A method of PubSub that returns a list of all peer IDs connected to it
()
| 197 | // A method of PubSub that returns a list |
| 198 | // of all peer IDs connected to it |
| 199 | func (cr *PubSub) PeerList() []peer.ID { |
| 200 | // Return the slice of peer IDs connected to chat room topic |
| 201 | return cr.pstopic.ListPeers() |
| 202 | } |
| 203 | |
| 204 | // A method of PubSub that updates the chat |
| 205 | // room by subscribing to the new topic |