Merge pull request #101 from dalbodeule/develop

asdf
This commit is contained in:
JinU Choi 2024-08-15 19:47:37 +09:00 committed by GitHub
commit 09ed95a3b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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) }

View File

@ -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
}
}

View File

@ -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
}
}