* perf(websocket): switch WiFi to performance mode before connecting
Optimize WebSocket connection speed by switching WiFi to performance
mode before establishing the connection, instead of after.
This reduces network latency significantly:
- TCP connection: 1093ms → 88ms (92% faster)
- WebSocket handshake: 1035ms → 80ms (92% faster)
- Total network layer: 2128ms → 173ms (92% faster)
The issue was caused by WiFi power save mode (MAX_MODEM) which adds
significant latency to packet transmission.
* Adjust formatting