-
-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
415af12
commit 2a8befd
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Socket.IO Tornado Examples | ||
========================== | ||
|
||
This directory contains example Socket.IO applications that are compatible | ||
with the Tornado framework. These applications require Tornado 5 and Python | ||
3.5 or later. | ||
|
||
app.py | ||
------ | ||
|
||
A basic "kitchen sink" type application that allows the user to experiment | ||
with most of the available features of the Socket.IO server. | ||
|
||
latency.py | ||
---------- | ||
|
||
A port of the latency application included in the official Engine.IO | ||
Javascript server. 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 and plots these in real | ||
time to the page. | ||
|
||
This is an ideal application to measure the performance of the different | ||
asynchronous modes supported by the Socket.IO server. | ||
|
||
Running the Examples | ||
-------------------- | ||
|
||
To run these examples, create a virtual environment, install the requirements | ||
and then run:: | ||
|
||
$ python app.py | ||
|
||
or:: | ||
|
||
$ python latency.py | ||
|
||
You can then access the application from your web browser at | ||
``http://localhost:8888``. |