We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87fa471 commit 4c4a68aCopy full SHA for 4c4a68a
appyter/ext/socketio/server.py
@@ -14,7 +14,9 @@ class AsyncServer(
14
`async with` is necessary for initialization
15
'''
16
def __init__(self, *args, **kwargs):
17
- super().__init__(*args, **kwargs)
+ ChunkedEmitMixin.__init__()
18
+ PriorityQueuedEmitMixin.__init__()
19
+ socketio.AsyncServer.__init__(*args, **kwargs)
20
self._listeners = { 'forward': [] }
21
22
async def __aenter__(self):
appyter/render/flask_app/socketio.py
@@ -4,7 +4,7 @@
4
5
from appyter.ext.socketio import AsyncServer
6
7
-socketio = AsyncServer(async_mode='aiohttp', cors_allowed_origins='*')
+socketio = AsyncServer(async_mode='aiohttp', cors_allowed_origins=[])
8
9
@socketio.on('connect')
10
async def _(sid, environ):
0 commit comments