Package 

Class BaseController

    • Constructor Detail

      • BaseController

        BaseController(IServer server, SimpMessagingTemplate socket)
    • Method Detail

      • onConnect

        @EventListener() final Unit onConnect(SessionConnectEvent e)
      • onDisconnect

        @EventListener() final Unit onDisconnect(SessionDisconnectEvent e)
      • findLastGame

        @SubscribeMapping(value = {/rejoin-game}) final String findLastGame(@ModelAttribute() User user)
      • getGame

        @SubscribeMapping(value = {/games/{gameCode}}) final IGame getGame(@DestinationVariable() String gameCode)
      • createGame

        @MessageMapping(value = {/games/{gameCode}/create})@SendToUser(value = {/topic/successes}) final String createGame(@DestinationVariable() String gameCode, @ModelAttribute() User user)
      • joinGame

        @MessageMapping(value = {/games/{gameCode}/join})@SendTo(value = {/topic/games/{gameCode}}) final IGame joinGame(@DestinationVariable() String gameCode, @Payload() Map<String, Object> settings, @ModelAttribute() User user)
      • updateSettings

        @MessageMapping(value = {/games/{gameCode}/update})@SendTo(value = {/topic/games/{gameCode}}) final IGame updateSettings(@DestinationVariable() String gameCode, @Payload() Map<String, Object> settings, @ModelAttribute() User user)
      • becomeAdmin

        @MessageMapping(value = {/games/{gameCode}/become-admin})@SendToUser(value = {/topic/successes}) final String becomeAdmin(@DestinationVariable() String gameCode, @ModelAttribute() User user)