Cam Thomas dropped 37 points to lead the Brooklyn Nets (18-27) to a narrow 106-104 victory over the Houston Rockets (21-24), breaking a three-game losing streak.

Despite a commanding 28-point lead in the second quarter, the Nets faced a resilient Rockets comeback in the fourth quarter, cutting the deficit to just one point with seven seconds remaining.

Mikal Bridges and Dorian Finney-Smith contributed 19 points each, while Nic Claxton added 10 points and 13 rebounds for Brooklyn.

Jalen Green, Dillon Brooks, and Cam Whitmore each scored 19 points for the Rockets.