production init

This commit is contained in:
Athena Funderburg
2026-05-26 16:41:23 +00:00
commit 21f38ee3e1
680 changed files with 47071 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from typing import Optional
import asyncio
from core.backend import Backend
def register(backend: Backend) -> None:
from util.misc import ProtocolRunner
backend.add_runner(ProtocolRunner('0.0.0.0', 5100, ListenerVideoChat, service = 'YMSG Video'))
class ListenerVideoChat(asyncio.Protocol):
def connection_made(self, transport: asyncio.BaseTransport) -> None:
print("Video chat connection_made")
def connection_lost(self, exc: Optional[Exception]) -> None:
print("Video chat connection_lost")
def data_received(self, data: bytes) -> None:
print("Video chat data_received", data)