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