TamTam: websocket transport for web version

This commit is contained in:
Alexey Polyakov
2026-03-27 19:00:14 +03:00
parent ac76015d08
commit 7a2e5a20d6
7 changed files with 193 additions and 11 deletions
+4 -2
View File
@@ -1,4 +1,6 @@
import asyncio, logging, traceback
import asyncio
import logging
import traceback
from common.proto_tcp import MobileProto
from tamtam.processors import Processors
from common.rate_limiter import RateLimiter
@@ -6,7 +8,7 @@ from common.opcodes import Opcodes
from common.tools import Tools
class TTMobileServer:
def __init__(self, host="0.0.0.0", port=443, ssl_context=None, db_pool=None, clients={}, send_event=None):
def __init__(self, host, port, ssl_context, db_pool, clients, send_event):
self.host = host
self.port = port
self.ssl_context = ssl_context