lib/euchre/game.rb
#resend telop info and current player info on websocket reconnect
resend telop info and current player info on websocket reconnect
resend telop info and current player info on websocket reconnect
def reconnect()
    if @round.status != "start"
      ActionCable.server.broadcast(@channel, { "type": "GAME_TELOP",
                                               "gameupdate": @round.current_game_telop,
                                               "status": @round.status,
                                               "currentPlayer": "p#{@round.current_player.player_no}",
                                               "reconnect": true })
    end
    if @round.cards_played
      @round.resend_played_cards()
    end
  end
def reconnect ( ) if @round . status != "start" ActionCable . server . broadcast ( @channel , { "type" : "GAME_TELOP" , "gameupdate" : @round . current_game_telop , "status" : @round . status , "currentPlayer" : "p#{@round.current_player.player_no}" , "reconnect" : true } ) end if @round . cards_played @round . resend_played_cards ( ) end end
resend telop info and current player info on websocket reconnect
resend telop info and current player info on websocket reconnect