Commit Graph

137 Commits

Author SHA1 Message Date
Andrew Godwin
5348c52778 Fixed #33: Add wsgi.multi* variables for back compat. 2016-01-02 18:35:43 -08:00
Andrew Godwin
d452486524 Correct body/POST handling 2016-01-02 18:10:25 -08:00
Andrew Godwin
836f6be43a Make runserver work using daphne 2016-01-02 17:53:53 -08:00
Andrew Godwin
b9464ca149 Start making channels work to ASGI spec. 2016-01-02 10:17:45 -08:00
Andrew Godwin
5a95248b3f Initial script name support 2015-12-18 21:23:09 +00:00
Andrew Godwin
a0b2696b30 Merge pull request #50 from bastianh/redis_url
Fixed #39: Allow redis:// URL redis configuration
2015-12-16 21:37:40 +00:00
Bastian Hoyer
70bc429d0b Fixed #39: Allow redis:// URL redis configuration 2015-12-16 20:42:56 +01:00
Bastian Hoyer
c5fdf16568 Fixes #44 also for twisted backend 2015-12-16 20:10:34 +01:00
Andrew Godwin
42d437eaf8 Fixed #44: Don't make autobahn check host/path 2015-12-15 19:55:26 +00:00
knbk
c9135ddcbe Fixed typo 2015-12-13 02:31:52 +01:00
Andrew Godwin
b6f38910de Working mixed-mode HTTP/WebSocket server! 2015-12-02 12:54:52 -08:00
Andrew Godwin
bf9a423211 Twisted HTTP interface now serves basic requests 2015-12-02 12:38:02 -08:00
ekmartin
4f87d53adc Include cookies in request_info for websockets 2015-11-18 17:48:03 +01:00
Andrew Godwin
0c03ea7780 Merge pull request #29 from ekmartin/tests_and_py3
Run tests with tox and add flake8/isort
2015-11-09 12:25:06 +00:00
ekmartin
28e132468f Store the session key as a string 2015-11-09 13:09:34 +01:00
ekmartin
cf2de79d64 Add isort and fix errors 2015-11-09 13:01:02 +01:00
ekmartin
1804d66b85 Ignore testproject for flake8 2015-11-09 13:00:00 +01:00
ekmartin
14bc306214 Make sure channels() actually returns the channel list 2015-11-09 13:00:00 +01:00
ekmartin
4469b55d96 Fix pep8 errors using the Django core's flake8 preset 2015-11-09 13:00:00 +01:00
ekmartin
351a18ba07 Add tox and run tests for python 2.7/3.5 and Django 1.6-1.8 2015-11-09 12:58:59 +01:00
Ben Cole
57f21d71e2 Added logging 2015-11-09 11:16:32 +01:00
Andrew Godwin
9222676bf7 Change status_code to status in http.response 2015-11-07 05:32:11 -08:00
Andrew Godwin
7b3845b0b2 Merge pull request #25 from wengole/master
Use Django's six and require Django instead of six
2015-11-07 14:24:06 +01:00
Andrew Godwin
b6714c8a65 Fixed #20: Bad routing setup for default backend 2015-11-07 05:02:03 -08:00
Ben Cole
21b54e7db8 Use Django's six and require Django instead of six 2015-11-07 13:47:26 +01:00
Andrew Godwin
dae0b257d6 Fix tests with unicode and isolation 2015-11-07 04:45:10 -08:00
Andrew Godwin
cac848fc89 Python 3 / unicode fixes 2015-11-07 03:13:05 -08:00
Andrew Godwin
f3c3a239b9 Add echo channel and fix __str__ on redis backend 2015-11-06 08:12:51 -08:00
Andrew Godwin
a41516fa6b Make Redis backend shardable 2015-11-06 08:00:15 -08:00
Andrew Godwin
5106c7822c Remove path_info from request message format 2015-11-06 13:39:48 +01:00
Andrew Godwin
c937c4da6d Don't keep doing keepalives if main loop dies 2015-11-06 13:39:47 +01:00
Andrew Godwin
b9f07475b7 Shuffle fetch order for channels to prevent starvation 2015-11-06 13:39:46 +01:00
Andrew Godwin
aaf2321db1 Make sure content on a send/close is sent before close 2015-11-06 13:39:44 +01:00
John Leith
56c375d460 keeping the parent class signature 2015-10-14 08:20:23 -06:00
Andrew Godwin
ab2f1df698 Merge pull request #19 from aexeagmbh/patch-port
fix hardcoded port in asyncio
2015-09-18 10:01:54 -07:00
Arne Schauf
503c5fd54b fix uuid generation 2015-09-18 10:35:47 +02:00
Arne Schauf
07bdaf020b fix hardcoded port in asyncio 2015-09-18 10:35:13 +02:00
Andrew Godwin
cadae8346a Merge pull request #16 from aexeagmbh/patch-port
Add cast to int when reading port argument
2015-09-17 09:34:44 -07:00
Arne Schauf
c1990a92ed decode incoming data before loading 2015-09-17 18:03:04 +02:00
Arne Schauf
29c5ee4c3f Add cast to int when reading port argument 2015-09-17 11:32:49 +02:00
Faris Chebib
ff9cdb7113 updated example and made decorators py3-ready 2015-09-10 16:57:57 -06:00
Andrew Godwin
655213eff9 0.8 2015-09-10 16:01:18 -05:00
Andrew Godwin
bd1553556d Refactor websocket servers a bit to share logic 2015-09-10 16:00:31 -05:00
Andrew Godwin
f69ad33747 Fixed #9: Add asyncio websocket server 2015-09-10 14:41:47 -05:00
Faris Chebib
414a4ab460 updated print statements 2015-09-10 12:26:08 -06:00
Andrew Godwin
638bf260f8 Fixed #6: Linearise decorator and better user session stuff 2015-09-10 11:52:49 -05:00
Andrew Godwin
2839a4265e Fix tests. 2015-09-09 22:07:22 -05:00
Andrew Godwin
2dd7f589eb Lowercase request GET/POST etc. 2015-09-09 21:25:36 -05:00
Andrew Godwin
70caf7d171 Rename channels and change message format docs 2015-09-09 21:21:43 -05:00
Andrew Godwin
fc52e3c5a2 Remove auto-importing of modules 2015-09-09 20:58:32 -05:00
Andrew Godwin
48d6f63fb2 Change to consumers taking a single "message" argument 2015-09-08 01:04:36 -05:00
Andrew Godwin
9b92eec43a Fix request/response compatability 2015-09-07 15:04:10 -05:00
Andrew Godwin
4c65ad4c09 Remove done comment 2015-09-03 00:08:05 -07:00
Andrew Godwin
16a0e73c6c Make runserver work with autoreload 2015-09-03 00:07:57 -07:00
Andrew Godwin
832809ca25 Stop using @consumer, move to explicit routing 2015-09-03 00:07:30 -07:00
Andrew Godwin
29eb75326f Make session decorator work right with ?session_key= 2015-09-03 00:06:58 -07:00
Andrew Godwin
a0830f88f7 Initial django session and auth decorators 2015-09-02 00:09:53 -07:00
Andrew Godwin
062035f992 Change to sending GET/POST as dicts of lists 2015-09-02 00:09:38 -07:00
Andrew Godwin
39a82e2a5c Make worker print exceptions rather than explode 2015-09-02 00:09:14 -07:00
Andrew Godwin
feb3017c0e Fix request GET/POST format 2015-08-04 23:54:10 +01:00
Andrew Godwin
b5210e38c4 Keepalive messages for WebSockets, and ! response chan prefix 2015-07-13 19:15:44 -07:00
Andrew Godwin
804a4c561e Implement send_channel_session 2015-07-13 17:58:52 -07:00
Andrew Godwin
6e91ea0040 Make the location of channels in INSTALLED_APPS not matter 2015-07-13 15:51:10 -05:00
Andrew Godwin
dfc11d4a67 Merge pull request #5 from hawkowl/py3
Port channels to py3
2015-07-13 00:18:28 -05:00
HawkOwl
8497b081a7 not required 2015-07-13 13:15:05 +08:00
Andrew Godwin
372d174eca Merge pull request #2 from nemesisdesign/patch-1
Fixed docstring typo in ResponseLater
2015-07-13 00:13:22 -05:00
HawkOwl
6abdeb4b48 Merge remote-tracking branch 'origin/master' 2015-07-13 12:53:46 +08:00
HawkOwl
9d86aaad34 hawkie fixes 2015-07-13 12:53:39 +08:00
Andrew Godwin
964c457df1 Make groups actually work 2015-07-12 23:52:02 -05:00
Andrew Godwin
3a4847887e Fix invalid py2 syntax 2015-07-12 23:37:43 -05:00
Andrew Godwin
8492dcde48 More docs, some API permutation 2015-07-12 21:25:53 -05:00
Andrew Godwin
aa921b1659 Channel groups, tests and docs 2015-07-12 20:19:10 -05:00
Federico Capoano
a488a3adfe Fixed docstring typo in ResponseLater
doown => down
2015-06-23 17:50:56 +02:00
Andrew Godwin
217afe0348 Start sphinx-ified docs 2015-06-20 10:27:22 +08:00
Andrew Godwin
7a99995eb8 Fix crash when non-handshaked websocket closes 2015-06-19 11:25:57 +08:00
Andrew Godwin
884dad9277 Version bump 2015-06-15 00:45:15 -07:00
Andrew Godwin
e9b8632b6c Make redis backend more portable to older versions 2015-06-15 00:44:52 -07:00
Andrew Godwin
d9681df69a Few more WS tweaks 2015-06-15 00:13:32 -07:00
Andrew Godwin
75ee13ff9c Add redis backend 2015-06-10 23:02:53 -07:00
Andrew Godwin
433625da1e Start working on a WebSocket interface server 2015-06-10 20:39:36 -07:00
Andrew Godwin
80627d8e37 Working database backend and "runworker" command 2015-06-10 11:17:32 -07:00
Andrew Godwin
95e706f71f Fix line endings 2015-06-10 09:42:34 -07:00
Andrew Godwin
c9eb683ed8 Switch to settings-based backend list, start ORM backend 2015-06-10 09:40:57 -07:00
Andrew Godwin
5a7af1e3af Add channel to every consumer signature, update msg fmt docs 2015-06-08 13:35:27 -07:00
Andrew Godwin
c2c1ffc5bd Make everything hang off of channel_layers 2015-06-08 12:40:47 -07:00
Andrew Godwin
2cc1d00e18 Separate channel backend from user-facing class 2015-06-08 12:22:23 -07:00
Andrew Godwin
6cd01e2bc1 Rename to plural "channels", start fleshing out req/resp cycle 2015-06-08 10:51:51 -07:00