mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
debug on WSSongListRoutes.kt
- debug re-tx logics
This commit is contained in:
parent
c9ceaf01fc
commit
ca2089631a
@ -65,7 +65,7 @@ fun Routing.wsSongListRoutes() {
|
|||||||
}
|
}
|
||||||
delay(100) // Check every 100 ms
|
delay(100) // Check every 100 ms
|
||||||
}
|
}
|
||||||
return false // Timeout
|
return false // Timeoutㅌ
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun sendWithRetry(uid: String, res: SongResponse, maxRetries: Int = 5, delayMillis: Long = 3000L) {
|
suspend fun sendWithRetry(uid: String, res: SongResponse, maxRetries: Int = 5, delayMillis: Long = 3000L) {
|
||||||
@ -136,16 +136,6 @@ fun Routing.wsSongListRoutes() {
|
|||||||
|
|
||||||
// Handle song requests
|
// Handle song requests
|
||||||
handleSongRequest(data, user, dispatcher, logger)
|
handleSongRequest(data, user, dispatcher, logger)
|
||||||
|
|
||||||
// Send ACK after handling request
|
|
||||||
sendSerialized(SongResponse(
|
|
||||||
SongType.ACK.value,
|
|
||||||
user.token!!,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is Ping -> send(Pong(frame.data))
|
is Ping -> send(Pong(frame.data))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user