How to reproduce:
1. Create new project
2. Open build settings, switch to WebGL and enable Autoconnect profiler setting
3. Build and run
4. Observe Profiler does not connect automatically
5. Observe Console
Warning spam: Connection X is no longer valid. Calling auto disconnect.
Reproduced with: 2022.1.0b1
Does not reproduce with: 2022.1.0a16