File tree 2 files changed +14
-9
lines changed
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 3
3
4
4
[ ![ Build Status] ( https://travis-ci.org/tbarbugli/tyron.png?cache=0 )] ( https://travis-ci.org/tbarbugli/tyron )
5
5
6
- Tyron is a web app to send push events to connected clients
6
+ Tyron is a web app for events pushing.
7
7
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.
11
9
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 **
14
11
15
12
The messaging backend utilises the redis pub/sub feature.
16
13
14
+
17
15
Subscribe to channels
18
16
====================
19
17
Clients subscribes to channel using the /<channel >/ entry point
20
18
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
+
21
24
Publish to clients
22
25
==================
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
24
27
on the channel tyron subscribes (see CHANNEL_NAME setting)
25
28
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)
27
30
28
31
Message format
29
32
==============
30
- Messages must follow this json format:
33
+ Messages published on redis must follow this json format:
31
34
32
35
` {"channel": "user_channel", "data": "...."} `
33
36
Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ def publish():
9
9
test ()
10
10
local ('rm -rf dist/' )
11
11
local ('python setup.py sdist upload' )
12
+ local ('git tag v%s' % tyron .__version__ )
13
+ local ('git push --tags' )
You can’t perform that action at this time.
0 commit comments