Skip to content

Commit

Permalink
Update publishing sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
sijis committed Dec 13, 2016
1 parent f9b779f commit 5a4650f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ See :doc:`development` on setting up your environment and workflow.
.. code-block:: python
import fedmsg
fedmsg.publish(topic='testing', modname='test', msg={
fedmsg.publish(name='mybus', topic='testing', modname='test', msg={
'test': "Hello World",
})
.. note:: The ``endpoints.py`` file should have an entry as ``"mybus": [ "tcp://127.0.0.1:4321", ]``

Publishing Messages from the Shell
----------------------------------

Expand Down

0 comments on commit 5a4650f

Please sign in to comment.