feat: WebSocket service for event and connection management

This commit is contained in:
Davidson Gomes
2025-03-06 09:22:02 -03:00
parent 9c22621876
commit ad3d0de564
184 changed files with 29850 additions and 8 deletions
@@ -0,0 +1,19 @@
import queue
import threading
import time
from engineio.async_drivers._websocket_wsgi import SimpleWebSocketWSGI
class DaemonThread(threading.Thread): # pragma: no cover
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs, daemon=True)
_async = {
'thread': DaemonThread,
'queue': queue.Queue,
'queue_empty': queue.Empty,
'event': threading.Event,
'websocket': SimpleWebSocketWSGI,
'sleep': time.sleep,
}