Skip to content

Commit

Permalink
Update and fixes for rst.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahselek committed May 27, 2018
1 parent 08b01dd commit 74731e7
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.rst
Expand Up @@ -53,39 +53,39 @@ Specifies a specific `room` that you want to emit to.
Emitter#In(room):Emitter
------------------------

.. code-black:: python
.. code-block:: python
io=Emitter({'host': 'localhost', 'port':6379})
io.In("room-name").Emit("news","Hello from python emitter");
Emitter#To(room):Emitter
------------------------

.. code-black:: python
.. code-block:: python
io=Emitter({'host': 'localhost', 'port':6379})
io=Emitter({'host': 'localhost', 'port':6379})
io.To("room-name").Emit("news","Hello from python emitter");
io.To("room-name").Emit("news","Hello from python emitter");
We are flattening the room parameter from [] and *argv, so you can also send to several rooms like this (both examples are valid):
We are flattening the room parameter from `[]` and `*argv`, so you can also send to several rooms like this (both examples are valid).

.. code-black:: python
.. code-block:: python
io=Emitter({'host': 'localhost', 'port':6379})
io=Emitter({'host': 'localhost', 'port':6379})
io.To(["room1", "room2"]).Emit("news","Hello from python emitter");
io.To("room1", "room2").Emit("news","Hello from python emitter");
io.To(["room1", "room2"]).Emit("news","Hello from python emitter");
io.To("room1", "room2").Emit("news","Hello from python emitter");
Emitter#Of(namespace):Emitter
-----------------------------

Specifies a specific namespace that you want to emit to.

.. code-black:: python
.. code-block:: python
io=Emitter({'host': 'localhost', 'port':6379})
io=Emitter({'host': 'localhost', 'port':6379})
io.Of("/nsp").In("room-name").Emit("news","Hello from python emitter");
io.Of("/nsp").In("room-name").Emit("news","Hello from python emitter");
License
-------
Expand Down Expand Up @@ -118,4 +118,4 @@ Open Source Projects in Use
* `redis-py <https://github.com/andymccurdy/redis-py>`_ by Andy McCurdy @andymccurdy
* `msgpack-python <https://github.com/msgpack/msgpack-python>`_ by MessagePack

z i λ a s a l.
@ziλasal & @abdullahselek

0 comments on commit 74731e7

Please sign in to comment.