Add heartbeat
This commit is contained in:
@@ -84,6 +84,10 @@ class Settings(BaseSettings):
|
||||
description="ICE servers configuration"
|
||||
)
|
||||
|
||||
# WebSocket heartbeat and inactivity
|
||||
inactivity_timeout_sec: int = Field(default=60, description="Close connection after no message from client (seconds)")
|
||||
heartbeat_interval_sec: int = Field(default=50, description="Send heartBeat event to client every N seconds")
|
||||
|
||||
@property
|
||||
def chunk_size_bytes(self) -> int:
|
||||
"""Calculate chunk size in bytes based on sample rate and duration."""
|
||||
|
||||
Reference in New Issue
Block a user