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 f1b2f4f7a1 Fix typos in examples/simple-client/sync/README.rst 7 months ago
..
README.rst Fix typos in examples/simple-client/sync/README.rst 7 months ago
fiddle_client.py Context manager interface for the simple clients 3 years ago
latency_client.py Upgrade the code to more recent Python versions 2 years ago

README.rst

Socket.IO Simple Client Examples
================================

This directory contains example Socket.IO clients that are built using the
simplified client.

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