Merge pull request #102 from dalbodeule/develop

asdf2
This commit is contained in:
JinU Choi 2024-08-15 19:48:55 +09:00 committed by GitHub
commit 325860523f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 3 deletions

View File

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

View File

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

View File

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