From fb9a8e2384b24937c7f3ff0af20b9870e2b20c40 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Sun, 16 Mar 2025 01:47:05 +0100 Subject: [PATCH] Rename class GameCommandRouteWebSocket --- .../{GameCommandRoute.kt => GameCommandRouteWebSocket.kt} | 2 +- .../eventDemo/configuration/ConfigureWebSocketsGameRoute.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/kotlin/eventDemo/app/command/{GameCommandRoute.kt => GameCommandRouteWebSocket.kt} (98%) diff --git a/src/main/kotlin/eventDemo/app/command/GameCommandRoute.kt b/src/main/kotlin/eventDemo/app/command/GameCommandRouteWebSocket.kt similarity index 98% rename from src/main/kotlin/eventDemo/app/command/GameCommandRoute.kt rename to src/main/kotlin/eventDemo/app/command/GameCommandRouteWebSocket.kt index 236f9b0..6add4db 100644 --- a/src/main/kotlin/eventDemo/app/command/GameCommandRoute.kt +++ b/src/main/kotlin/eventDemo/app/command/GameCommandRouteWebSocket.kt @@ -18,7 +18,7 @@ import kotlinx.coroutines.channels.SendChannel import kotlinx.coroutines.launch @DelicateCoroutinesApi -fun Route.gameSocket( +fun Route.gameWebSocket( playerNotificationListener: PlayerNotificationEventListener, commandHandler: GameCommandHandler, ) { diff --git a/src/main/kotlin/eventDemo/configuration/ConfigureWebSocketsGameRoute.kt b/src/main/kotlin/eventDemo/configuration/ConfigureWebSocketsGameRoute.kt index 97df84b..e75d3b9 100644 --- a/src/main/kotlin/eventDemo/configuration/ConfigureWebSocketsGameRoute.kt +++ b/src/main/kotlin/eventDemo/configuration/ConfigureWebSocketsGameRoute.kt @@ -1,7 +1,7 @@ package eventDemo.configuration import eventDemo.app.command.GameCommandHandler -import eventDemo.app.command.gameSocket +import eventDemo.app.command.gameWebSocket import eventDemo.app.eventListener.PlayerNotificationEventListener import io.ktor.server.application.Application import io.ktor.server.routing.routing @@ -13,6 +13,6 @@ fun Application.declareWebSocketsGameRoute( commandHandler: GameCommandHandler, ) { routing { - gameSocket(playerNotificationListener, commandHandler) + gameWebSocket(playerNotificationListener, commandHandler) } }