(self, topic: ty.Optional[str] = None, **kwargs: base.CommonArgs)
return self._client.request('/pubsub/peers', args, decoder='json', **kwargs)
Lists the peers we are pubsubbing with
		
		Lists the IDs of other IPFS users who we
		are connected to via some topic. Without specifying
		a topic, IPFS peers from all subscribed topics
		will be returned in the data. If a topic is specified
		only the IPFS id's of the peers from the specified
		topic will be returned in the data.
		
		.. code-block:: python
		
			>>> client.pubsub.peers()
			{'Strings':
					[
						'QmPbZ3SDgmTNEB1gNSE9DEf4xT8eag3AFn5uo7X39TbZM8',
						'QmQKiXYzoFpiGZ93DaFBFDMDWDJCRjXDARu4wne2PRtSgA',
						...
						'QmepgFW7BHEtU4pZJdxaNiv75mKLLRQnPi1KaaXmQN4V1a'
					]
			}
			
			## with a topic
			
			# subscribe to a channel
			>>> with client.pubsub.sub('hello') as sub:
			...     client.pubsub.peers(topic='hello')
			{'String':
					[
						'QmPbZ3SDgmTNEB1gNSE9DEf4xT8eag3AFn5uo7X39TbZM8',
						...
						# other peers connected to the same channel
					]
			}
		
		Parameters
		----------
		topic
			The topic to list connected peers of
			(defaults to None which lists peers for all topics)
		
		Returns
		-------
			dict
		
		+---------+-------------------------------------------------+
		| Strings | List of PeerIDs of peers we are pubsubbing with |
		+---------+-------------------------------------------------+
Lists the peers we are pubsubbing with
		
		Lists the IDs of other IPFS users who we
		are connected to via some topic. Without specifying
		a topic, IPFS peers from all subscribed topics
		will be returned in the data. If a topic is specified
		only the IPFS id's of the peers from the specified
		topic will be returned in the data.
		
		.. code-block:: python
		
			>>> client.pubsub.peers()
			{'Strings':
					[
						'QmPbZ3SDgmTNEB1gNSE9DEf4xT8eag3AFn5uo7X39TbZM8',
						'QmQKiXYzoFpiGZ93DaFBFDMDWDJCRjXDARu4wne2PRtSgA',
						...
						'QmepgFW7BHEtU4pZJdxaNiv75mKLLRQnPi1KaaXmQN4V1a'
					]
			}
			
			## with a topic
			
			# subscribe to a channel
			>>> with client.pubsub.sub('hello') as sub:
			...     client.pubsub.peers(topic='hello')
			{'String':
					[
						'QmPbZ3SDgmTNEB1gNSE9DEf4xT8eag3AFn5uo7X39TbZM8',
						...
						# other peers connected to the same channel
					]
			}
		
		Parameters
		----------
		topic
			The topic to list connected peers of
			(defaults to None which lists peers for all topics)
		
		Returns
		-------
			dict
		
		+---------+-------------------------------------------------+
		| Strings | List of PeerIDs of peers we are pubsubbing with |
		+---------+-------------------------------------------------+
Lists the peers we are pubsubbing with Lists the IDs of other IPFS users who we are connected to via some topic . Without specifying a topic IPFS peers from all subscribed topics will be returned in the data . If a topic is specified only the IPFS id s of the peers from the specified topic will be returned in the data . .. code - block :: python >>> client . pubsub . peers () { Strings : [ QmPbZ3SDgmTNEB1gNSE9DEf4xT8eag3AFn5uo7X39TbZM8 QmQKiXYzoFpiGZ93DaFBFDMDWDJCRjXDARu4wne2PRtSgA ... QmepgFW7BHEtU4pZJdxaNiv75mKLLRQnPi1KaaXmQN4V1a ] } ## with a topic # subscribe to a channel >>> with client . pubsub . sub ( hello ) as sub : ... client . pubsub . peers ( topic = hello ) { String : [ QmPbZ3SDgmTNEB1gNSE9DEf4xT8eag3AFn5uo7X39TbZM8 ... # other peers connected to the same channel ] } Parameters ---------- topic The topic to list connected peers of ( defaults to None which lists peers for all topics ) Returns ------- dict + --------- + ------------------------------------------------- + | Strings | List of PeerIDs of peers we are pubsubbing with | + --------- + ------------------------------------------------- +
def peers(self, topic: ty.Optional[str] = None, **kwargs: base.CommonArgs):
		"""Lists the peers we are pubsubbing with
		
		Lists the IDs of other IPFS users who we
		are connected to via some topic. Without specifying
		a topic, IPFS peers from all subscribed topics
		will be returned in the data. If a topic is specified
		only the IPFS id's of the peers from the specified
		topic will be returned in the data.
		
		.. code-block:: python
		
			>>> client.pubsub.peers()
			{'Strings':
					[
						'QmPbZ3SDgmTNEB1gNSE9DEf4xT8eag3AFn5uo7X39TbZM8',
						'QmQKiXYzoFpiGZ93DaFBFDMDWDJCRjXDARu4wne2PRtSgA',
						...
						'QmepgFW7BHEtU4pZJdxaNiv75mKLLRQnPi1KaaXmQN4V1a'
					]
			}
			
			## with a topic
			
			# subscribe to a channel
			>>> with client.pubsub.sub('hello') as sub:
			...     client.pubsub.peers(topic='hello')
			{'String':
					[
						'QmPbZ3SDgmTNEB1gNSE9DEf4xT8eag3AFn5uo7X39TbZM8',
						...
						# other peers connected to the same channel
					]
			}
		
		Parameters
		----------
		topic
			The topic to list connected peers of
			(defaults to None which lists peers for all topics)
		
		Returns
		-------
			dict
		
		+---------+-------------------------------------------------+
		| Strings | List of PeerIDs of peers we are pubsubbing with |
		+---------+-------------------------------------------------+
		"""
		args = (topic,) if topic is not None else ()
		return self._client.request('/pubsub/peers', args, decoder='json', **kwargs)
def peers ( self , topic : ty . Optional [ str ] = None , * * kwargs : base . CommonArgs ) : args = ( topic , ) if topic is not None else ( ) return self . _client . request ( '/pubsub/peers' , args , decoder = 'json' , * * kwargs )