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