We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 791ea4a commit 1f295c5Copy full SHA for 1f295c5
1 file changed
docs/client.rst
@@ -23,6 +23,10 @@ Examples
23
client.send_message("/some/address", 123) # Send float message
24
client.send_message("/some/address", [1, 2., "hello"]) # Send message with int, float and string
25
26
+ # Alternatively, use a context manager to automatically close the socket
27
+ with SimpleUDPClient(ip, port) as client:
28
+ client.send_message("/some/address", 123)
29
+
30
31
.. code-block:: python
32
0 commit comments