You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
khanhkhanhlele 843bb4a8f8 Fix typos in examples/client/async/README.rst 7 months ago
..
README.rst Fix typos in examples/client/async/README.rst 7 months ago
fiddle_client.py Pass a `reason` argument to the disconnect handler (#1422) 1 year ago
latency_client.py linter fixes #nolog 1 year ago

README.rst

Socket.IO Async Client Examples
===============================

This directory contains example Socket.IO clients that work with the
``asyncio`` package of the Python standard library.

latency_client.py
-----------------

In this application the client sends *ping* messages to the server, which are
responded by the server with a *pong*. The client measures the time it takes
for each of these exchanges.

This is an ideal application to measure the performance of the different
asynchronous modes supported by the Socket.IO server.

fiddle_client.py
----------------

This is an extremely simple application based on the JavaScript example of the
same name.

Running the Examples
--------------------

These examples work with the server examples of the same name. First run one
of the ``latency.py`` or ``fiddle.py`` versions from one of the
``examples/server`` subdirectories. On another terminal, then start the
corresponding client::

$ python latency_client.py
$ python fiddle_client.py