(self, topic: str, payload: str, **kwargs: base.CommonArgs)
return self._client.request('/pubsub/pub', args, decoder='json', **kwargs)
Publish a message to a given pubsub topic
		
		Publishing will publish the given payload (string) to
		everyone currently subscribed to the given topic.
		
		All data (including the ID of the publisher) is automatically
		base64 encoded when published.
		
		.. code-block:: python
		
			# publishes the message 'message' to the topic 'hello'
			>>> client.pubsub.publish('hello', 'message')
			[]
		
		Parameters
		----------
		topic
			Topic to publish to
		payload
			Data to be published to the given topic
		
		Returns
		-------
			list
				An empty list
Publish a message to a given pubsub topic
		
		Publishing will publish the given payload (string) to
		everyone currently subscribed to the given topic.
		
		All data (including the ID of the publisher) is automatically
		base64 encoded when published.
		
		.. code-block:: python
		
			# publishes the message 'message' to the topic 'hello'
			>>> client.pubsub.publish('hello', 'message')
			[]
		
		Parameters
		----------
		topic
			Topic to publish to
		payload
			Data to be published to the given topic
		
		Returns
		-------
			list
				An empty list
Publish a message to a given pubsub topic Publishing will publish the given payload ( string ) to everyone currently subscribed to the given topic . All data ( including the ID of the publisher ) is automatically base64 encoded when published . .. code - block :: python # publishes the message message to the topic hello >>> client . pubsub . publish ( hello message ) [] Parameters ---------- topic Topic to publish to payload Data to be published to the given topic Returns ------- list An empty list
def publish(self, topic: str, payload: str, **kwargs: base.CommonArgs):
		"""Publish a message to a given pubsub topic
		
		Publishing will publish the given payload (string) to
		everyone currently subscribed to the given topic.
		
		All data (including the ID of the publisher) is automatically
		base64 encoded when published.
		
		.. code-block:: python
		
			# publishes the message 'message' to the topic 'hello'
			>>> client.pubsub.publish('hello', 'message')
			[]
		
		Parameters
		----------
		topic
			Topic to publish to
		payload
			Data to be published to the given topic
		
		Returns
		-------
			list
				An empty list
		"""
		args = (topic, payload)
		return self._client.request('/pubsub/pub', args, decoder='json', **kwargs)
def publish ( self , topic : str , payload : str , * * kwargs : base . CommonArgs ) : args = ( topic , payload ) return self . _client . request ( '/pubsub/pub' , args , decoder = 'json' , * * kwargs )