Client module — utils/socketConnect.ts
Connection config
Lifecycle
When connection starts
- Successful login (
JWTContext.login) - Valid token on app boot (
verifyToken+/user/verifyToken)
Heartbeat
- Client emits
pingevery 15 seconds (insocketConnectand some page listeners) - Server responds with
pong