mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-17 01:50:53 +00:00
convenient. Example: tests/websockets_chat_2.py Add: add a new API `uwsgi.input_object()` for get `struct wsgi_req *` in python. Modify: `uwsgi.websocket_send/send_binary/recv/recv_nb` now has a kwarg: `uwsgi_input`. If not provide the `uwsgi_input` keyword argument, The four function's behavior not changed. When provide the `uwsgi_input` keyword argument, The four function will get `wsgi_req` from the argument. In this way, uwsgi websocket functions can be used in other greenlets.