# Hi2Chat Enterprise Development - Build 03.4.2

## Fix
- Fixed local dev lobby WebSocket disconnect crash.
- Dev socket users (`dev-*`) no longer call database presence update.
- `handleDisconnect()` no longer throws `User not found` when testing without a real database user.
- Presence update for real JWT users is now safely wrapped with warning logs instead of crashing gateway.

## Test
1. `npm install`
2. `npm run start:dev`
3. Open `tools/socket-test-client.html`
4. Keep JWT empty for local dev test
5. Click `Connect`
6. Click `Join Lobby`
7. Send message

## Production
For production, use a real JWT token from `/api/v1/auth/login` and set `ENABLE_DEV_SOCKET=false`.
