Rename class GameCommandRouteWebSocket
This commit is contained in:
@@ -18,7 +18,7 @@ import kotlinx.coroutines.channels.SendChannel
|
|||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
@DelicateCoroutinesApi
|
@DelicateCoroutinesApi
|
||||||
fun Route.gameSocket(
|
fun Route.gameWebSocket(
|
||||||
playerNotificationListener: PlayerNotificationEventListener,
|
playerNotificationListener: PlayerNotificationEventListener,
|
||||||
commandHandler: GameCommandHandler,
|
commandHandler: GameCommandHandler,
|
||||||
) {
|
) {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package eventDemo.configuration
|
package eventDemo.configuration
|
||||||
|
|
||||||
import eventDemo.app.command.GameCommandHandler
|
import eventDemo.app.command.GameCommandHandler
|
||||||
import eventDemo.app.command.gameSocket
|
import eventDemo.app.command.gameWebSocket
|
||||||
import eventDemo.app.eventListener.PlayerNotificationEventListener
|
import eventDemo.app.eventListener.PlayerNotificationEventListener
|
||||||
import io.ktor.server.application.Application
|
import io.ktor.server.application.Application
|
||||||
import io.ktor.server.routing.routing
|
import io.ktor.server.routing.routing
|
||||||
@@ -13,6 +13,6 @@ fun Application.declareWebSocketsGameRoute(
|
|||||||
commandHandler: GameCommandHandler,
|
commandHandler: GameCommandHandler,
|
||||||
) {
|
) {
|
||||||
routing {
|
routing {
|
||||||
gameSocket(playerNotificationListener, commandHandler)
|
gameWebSocket(playerNotificationListener, commandHandler)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user