mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 12:51:13 +00:00
some debug on WSTimerRoutes.kt
This commit is contained in:
@@ -60,13 +60,13 @@ fun Routing.wsTimerRoutes() {
|
||||
dispatcher.subscribe(TimerEvent::class) {
|
||||
logger.debug("TimerEvent: {} / {}", it.uid, it.type)
|
||||
CoroutineScope(Dispatchers.Default).launch {
|
||||
sessions[it.uid]?.sendSerialized(TimerResponse(it.type, it.time ?: ""))
|
||||
sessions[it.uid]?.sendSerialized(TimerResponse(it.type.value, it.time ?: ""))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Serializable
|
||||
data class TimerResponse(
|
||||
val type: TimerType,
|
||||
val type: Int,
|
||||
val time: String?
|
||||
)
|
Reference in New Issue
Block a user