Rename class GameCommandRouteWebSocket
This commit is contained in:
@@ -18,7 +18,7 @@ import kotlinx.coroutines.channels.SendChannel
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
@DelicateCoroutinesApi
|
||||
fun Route.gameSocket(
|
||||
fun Route.gameWebSocket(
|
||||
playerNotificationListener: PlayerNotificationEventListener,
|
||||
commandHandler: GameCommandHandler,
|
||||
) {
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user