Files
posefit-server/app/signaling/message_models.py
T
wsy182 4485cbf702 Refactor into modular app structure
Split monolithic files into focused modules:
- app/core: settings, logging, lifecycle
- app/signaling: websocket server, ICE parser, message models
- app/webrtc: peer session, video receiver, frame source
- app/vision: pose landmarker wrapper, model config, pose types
- app/exercises/dead_bug: detector, metrics, rules, state machine, types
- app/rendering: skeleton renderer, status overlay, window display
- app/audio: rep announcer
- app/diagnostics: perf timer, crash handler
- configs: environment-based settings
- tests: unit tests for rules, state machine, ICE parser
- run.py: entry point
2026-06-10 10:14:43 +08:00

13 lines
227 B
Python

from __future__ import annotations
from dataclasses import dataclass, field
@dataclass
class SignalingMessage:
type: str
sdp: str = ""
candidate: str = ""
sdpMid: str | None = None
sdpMLineIndex: int = 0