Skip to content

Commit 3c0c065

Browse files
committed
better docs
1 parent b7bba3a commit 3c0c065

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,34 @@ Tyron
33

44
[![Build Status](https://travis-ci.org/tbarbugli/tyron.png?cache=0)](https://travis-ci.org/tbarbugli/tyron)
55

6-
Tyron is a web app to send push events to connected clients
6+
Tyron is a web app for events pushing.
77

8-
A client connects to tyron and subscribes to a specific channel,
9-
tyron will keep the http connection open until something get published
10-
to that channel.
8+
It is written in python and developed as a Flask application.
119

12-
To keep the connection count as little as possible open connection will
13-
timeout after a configurable interval of time.
10+
** Gevent is required to run Tyron **
1411

1512
The messaging backend utilises the redis pub/sub feature.
1613

14+
1715
Subscribe to channels
1816
====================
1917
Clients subscribes to channel using the /<channel>/ entry point
2018

19+
To keep the connection count as little as possible connections will
20+
be closed after a configurable interval of time, a predefined response body
21+
will be sent to the client.
22+
23+
2124
Publish to clients
2225
==================
23-
To publish to a client you need to connect to redis and publish
26+
In order to publish messages you need to connect to redis and publish
2427
on the channel tyron subscribes (see CHANNEL_NAME setting)
2528

26-
NOTE: The user channel is part of the message you publish to redis
29+
NOTE: The user channel is part of the message you publish to redis (see message format)
2730

2831
Message format
2932
==============
30-
Messages must follow this json format:
33+
Messages published on redis must follow this json format:
3134

3235
`{"channel": "user_channel", "data": "...."}`
3336

publish.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ def publish():
99
test()
1010
local('rm -rf dist/')
1111
local('python setup.py sdist upload')
12+
local('git tag v%s' % tyron.__version__)
13+
local('git push --tags')

0 commit comments

Comments
 (0)