How mrtwister99-png/mychat_final works
blbEchat is an Expo mobile chat with PIN-based user/admin access and a Socket.IO backend. The primary workflow is entering a PIN, server-side role classification, then using the appropriate user or admin chat interface; the backend also manages chat state, device trust, recovery, and persisted configuration. Push notifications and the Žížala game are additional capabilities. The backend excerpt is partial, so the graph includes only clearly documented or evidenced connections and omits uncertain event wiring.
Main entry points: App.js App navigation · index.js Socket.IO server · socket.js Socket client · UzivatelPin.js User chat
Components 15
Mobile app
- App navigation
App.js - PIN entry
src/screens/PinEntry.js - User chat
src/screens/UzivatelPin.js - Admin console
src/screens/AdminPin.js - Socket client
src/socket.js - Push notifications
src/notifications.js
Chat backend
- Socket.IO server
server/index.js - PIN classification
server/pinRouter.js - Persistence adapter
server/supabase.js
External services
- Supabase data
- Expo push service
- Game scores
Additional features
- Žížala game
src/components/Zizala.js
Other components
- Chat user
- Administrator
Connections 17
- Chat user → App navigation: opens app
- Administrator → App navigation: opens app
- App navigation → PIN entry: shows entry
- PIN entry → Socket client: submits auth
- Socket client → Socket.IO server: Socket.IO events
- Socket.IO server → PIN classification: classifies PIN
- Socket.IO server → Persistence adapter: loads and persists
- Persistence adapter → Supabase data: reads and writes
- Socket.IO server → Socket client: sends updates
- App navigation → User chat: routes user
- App navigation → Admin console: routes admin
- User chat → Socket client: chat events
- Admin console → Socket client: admin events
- App navigation → Push notifications: registers and handles
- Socket.IO server → Expo push service: sends push
- User chat → Žížala game: presents game
- Žížala game → Game scores: reads and writes scores