This commit is contained in:
dalbodeule 2024-08-15 19:48:31 +09:00
parent c4db370c91
commit 1bea333d9d
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65
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))