python-engineio 4.12.0__py3-none-any.whl → 4.12.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- engineio/async_drivers/asgi.py +6 -1
- {python_engineio-4.12.0.dist-info → python_engineio-4.12.1.dist-info}/METADATA +2 -2
- {python_engineio-4.12.0.dist-info → python_engineio-4.12.1.dist-info}/RECORD +6 -6
- {python_engineio-4.12.0.dist-info → python_engineio-4.12.1.dist-info}/WHEEL +1 -1
- {python_engineio-4.12.0.dist-info → python_engineio-4.12.1.dist-info}/licenses/LICENSE +0 -0
- {python_engineio-4.12.0.dist-info → python_engineio-4.12.1.dist-info}/top_level.txt +0 -0
engineio/async_drivers/asgi.py
CHANGED
|
@@ -280,7 +280,12 @@ class WebSocket: # pragma: no cover
|
|
|
280
280
|
event = await self.asgi_receive()
|
|
281
281
|
if event['type'] != 'websocket.receive':
|
|
282
282
|
raise OSError()
|
|
283
|
-
|
|
283
|
+
if 'bytes' in event:
|
|
284
|
+
return event['bytes']
|
|
285
|
+
elif 'text' in event:
|
|
286
|
+
return event['text']
|
|
287
|
+
else: # pragma: no cover
|
|
288
|
+
raise OSError()
|
|
284
289
|
|
|
285
290
|
|
|
286
291
|
_async = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-engineio
|
|
3
|
-
Version: 4.12.
|
|
3
|
+
Version: 4.12.1
|
|
4
4
|
Summary: Engine.IO server and client for Python
|
|
5
5
|
Author-email: Miguel Grinberg <miguel.grinberg@gmail.com>
|
|
6
|
+
License: MIT
|
|
6
7
|
Project-URL: Homepage, https://github.com/miguelgrinberg/python-engineio
|
|
7
8
|
Project-URL: Bug Tracker, https://github.com/miguelgrinberg/python-engineio/issues
|
|
8
9
|
Classifier: Environment :: Web Environment
|
|
9
10
|
Classifier: Intended Audience :: Developers
|
|
10
11
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
13
|
Requires-Python: >=3.6
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
@@ -17,15 +17,15 @@ engineio/static_files.py,sha256=pwez9LQFaSQXMbtI0vLyD6UDiokQ4rNfmRYgVLKOthc,2064
|
|
|
17
17
|
engineio/async_drivers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
18
|
engineio/async_drivers/_websocket_wsgi.py,sha256=LuOEfKhbAw8SplB5PMpYKIUqfCPEadQEpqeiq_leOIA,949
|
|
19
19
|
engineio/async_drivers/aiohttp.py,sha256=OBDGhaNXWHxQkwhzZT2vlTAOqWReGS6Sjk9u3BEh_Mc,3754
|
|
20
|
-
engineio/async_drivers/asgi.py,sha256=
|
|
20
|
+
engineio/async_drivers/asgi.py,sha256=v0FlBQT6iHmrhlDbVAM5ZjLni22utLiV0f5XyDeTlzY,11343
|
|
21
21
|
engineio/async_drivers/eventlet.py,sha256=n1y4OjPdj4J2GIep5N56O29oa5NQgFJVcTBjyO1C-Gs,1735
|
|
22
22
|
engineio/async_drivers/gevent.py,sha256=hnJHeWdDQE2jfoLCP5DnwVPzsQlcTLJUMA5EVf1UL-k,2962
|
|
23
23
|
engineio/async_drivers/gevent_uwsgi.py,sha256=m6ay5dov9FDQl0fbeiKeE-Orh5LiF6zLlYQ64Oa3T5g,5954
|
|
24
24
|
engineio/async_drivers/sanic.py,sha256=GYX8YWR1GbRm-GkMTAQkfkWbY12MOT1IV2DzH0Xx8Ns,4495
|
|
25
25
|
engineio/async_drivers/threading.py,sha256=ywmG59d4H6OHZjKarBN97-9BHEsRxFEz9YN-E9QAu_I,463
|
|
26
26
|
engineio/async_drivers/tornado.py,sha256=mbVHs1mECfzFSNv33uigkpTBtNPT0u49k5zaybewdIo,5893
|
|
27
|
-
python_engineio-4.12.
|
|
28
|
-
python_engineio-4.12.
|
|
29
|
-
python_engineio-4.12.
|
|
30
|
-
python_engineio-4.12.
|
|
31
|
-
python_engineio-4.12.
|
|
27
|
+
python_engineio-4.12.1.dist-info/licenses/LICENSE,sha256=yel9Pbwfu82094CLKCzWRtuIev9PUxP-a76NTDFAWpw,1082
|
|
28
|
+
python_engineio-4.12.1.dist-info/METADATA,sha256=wiaRuG1XGttR3GGc2Xm7hP9opjQC-PRAANPplk3gq3c,2221
|
|
29
|
+
python_engineio-4.12.1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
30
|
+
python_engineio-4.12.1.dist-info/top_level.txt,sha256=u8PmNisCZLwRYcWrNLe9wutQ2tt4zNi8IH362c-HWuA,9
|
|
31
|
+
python_engineio-4.12.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|