mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
some debug on WSTimerRoutes.kt
This commit is contained in:
parent
6b533bcee9
commit
65d491cc8e
@ -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?
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user