mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
asdf2
This commit is contained in:
parent
c4db370c91
commit
1bea333d9d
@ -72,7 +72,6 @@ fun Routing.wsSongListRoutes() {
|
|||||||
is Frame.Text -> {
|
is Frame.Text -> {
|
||||||
if(frame.readText() == "ping") {
|
if(frame.readText() == "ping") {
|
||||||
send("pong")
|
send("pong")
|
||||||
return@webSocket
|
|
||||||
}
|
}
|
||||||
val data = frame.readText().let { Json.decodeFromString<SongRequest>(it) }
|
val data = frame.readText().let { Json.decodeFromString<SongRequest>(it) }
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ fun Routing.wsSongRoutes() {
|
|||||||
is Frame.Text -> {
|
is Frame.Text -> {
|
||||||
if(frame.readText() == "ping") {
|
if(frame.readText() == "ping") {
|
||||||
send("pong")
|
send("pong")
|
||||||
return@webSocket
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is Frame.Ping -> send(Frame.Pong(frame.data))
|
is Frame.Ping -> send(Frame.Pong(frame.data))
|
||||||
|
@ -65,7 +65,6 @@ fun Routing.wsTimerRoutes() {
|
|||||||
is Frame.Text -> {
|
is Frame.Text -> {
|
||||||
if(frame.readText() == "ping") {
|
if(frame.readText() == "ping") {
|
||||||
send("pong")
|
send("pong")
|
||||||
return@webSocket
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is Frame.Ping -> send(Frame.Pong(frame.data))
|
is Frame.Ping -> send(Frame.Pong(frame.data))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user