mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
asdf
This commit is contained in:
@@ -71,7 +71,7 @@ fun Routing.wsSongListRoutes() {
|
||||
when(frame) {
|
||||
is Frame.Text -> {
|
||||
if(frame.readText() == "ping") {
|
||||
send(Frame.Pong(frame.data))
|
||||
send("pong")
|
||||
return@webSocket
|
||||
}
|
||||
val data = frame.readText().let { Json.decodeFromString<SongRequest>(it) }
|
||||
|
@@ -64,7 +64,7 @@ fun Routing.wsSongRoutes() {
|
||||
when(frame) {
|
||||
is Frame.Text -> {
|
||||
if(frame.readText() == "ping") {
|
||||
send(Frame.Pong(frame.data))
|
||||
send("pong")
|
||||
return@webSocket
|
||||
}
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ fun Routing.wsTimerRoutes() {
|
||||
when(frame) {
|
||||
is Frame.Text -> {
|
||||
if(frame.readText() == "ping") {
|
||||
send(Frame.Pong(frame.data))
|
||||
send("pong")
|
||||
return@webSocket
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user