func (r *Runner) removePlayer(ctx context.Context, sm message.Socket) {
	if addrs, ok := r.playerSockets[sm.PlayerName]; ok {
		for addr := range addrs {
			m2 := message.Message{
				PlayerName: sm.PlayerName,
				Addr:       addr,
			}
			r.removeSocket(ctx, m2)
		}
	}
}
// removePlayer removes the player's sockets and games.
removePlayer removes the player's sockets and games.
// removePlayer removes the player ' s sockets and games .
func (r *Runner) removePlayer(ctx context.Context, sm message.Socket) {
	if addrs, ok := r.playerSockets[sm.PlayerName]; ok {
		for addr := range addrs {
			m2 := message.Message{
				PlayerName: sm.PlayerName,
				Addr:       addr,
			}
			r.removeSocket(ctx, m2)
		}
	}
}
func ( r * Runner ) removePlayer ( ctx context . Context , sm message . Socket ) { if addrs , ok := r . playerSockets [ sm . PlayerName ] ; ok { for addr := range addrs { m2 := message . Message { PlayerName : sm . PlayerName , Addr : addr , } r . removeSocket ( ctx , m2 ) } } }
removePlayer removes the player's sockets and games.
removePlayer removes the player ' s sockets and games .