Refactor WebSocket handlers and add ACK-based message flow

Consolidated coroutine scopes into `songListScope` and `timerScope` for better management across WebSocket routes. Introduced ACK (acknowledgment) handling for reliable message delivery with retries and timeouts. Updated session handling for multiple WebSocket routes to improve code maintainability and consistency.
This commit is contained in:
dalbodeule committed 2025-04-24 16:56:49 +09:00
1 parent d07cdb6ae8
commit 8230762053
5 files changed
+190 -161

No files matched your search

@@ -5,7 +5,8 @@ enum class TimerType(var value: Int) {
TIMER(1),
REMOVE(2),
STREAM_OFF(50)
STREAM_OFF(50),
ACK(51)
}
class TimerEvent(