Right winger Travis Konecny got what he wanted Monday.

The restricted free agent was seeking a long-term deal, and he signed a six-year pact with the Flyers that totals $33 million, an annual $5.5 million cap hit.

General manager Chuck Fletcher, who originally was seeking a shorter term, praised Konecny for his “progression in each of his three seasons” and called him an “integral part of our group of young forwards. His speed, skill, and tenacity sets him apart in today’s NHL.”

Konecny, 22, who scored 24 goals in each of his last two seasons, said he was “excited to be able to call Philadelphia home for the next six years.”

He will practice with the Flyers on Tuesday.

The signing leaves the Flyers with just $1.17 million in cap space, according to capfriendly.com. They have $80.3 million earmarked to just 21 players. It is not known if they will carry 22 or 23 players.

The cap limit is 81.5 million.

Konecny, who will become an unrestricted free agent in 2025-26, is expected to be the Flyers’ top-line right winger. Down the road, some view him as the heir apparent to Claude Giroux as the Flyers’ captain.

Konecny has the fifth-highest annual cap hit among Flyers forwards, behind Giroux ($8.28 million), Jake Voracek ($8.25 million), Kevin Hayes ($7.14 million), and James van Riemsdyk ($7 million).

Sean Couturier, 26, regarded as the Flyers’ best all-around player, has a $4.33-million annual cap hit. He has three more years on his team-friendly deal.