Frappe Chat Application
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch develop
bench install-app f_chatThis app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/f_chat
pre-commit installPre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
gpl-3.0
┌─────────────────────────────────────────────────────────────┐
│ BROWSER │
│ │
│ ┌─────────────────┐ ┌────────────────────┐ │
│ │ Chat UI │────────►│ Call UI │ │
│ │ (nav_chat) │ │ (call_ui.html) │ │
│ └────────┬────────┘ └──────────┬─────────┘ │
│ │ │ │
│ │ ┌──────────────────────────▼─────┐ │
│ │ │ Chat Features Extended │ │
│ │ │ (chat_features_extended10.js) │ │
│ │ └──────────────┬─────────────────┘ │
│ │ │ │
│ │ ┌─────────▼──────────┐ │
│ │ │ ChatWebRTC Module │ │
│ │ │ (webrtc_fixed.js) │ │
│ │ └─────────┬──────────┘ │
└───────────┼─────────────────┼──────────────────────────────┘
│ │
│ Frappe API │ WebRTC Signals
▼ ▼
┌─────────────────────────────────────────────────────────────┐
│ FRAPPE SERVER │
│ │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ Call Management API │ │
│ │ (call_management.py) │ │
│ │ │ │
│ │ • initiate_call() • send_webrtc_signal() │ │
│ │ • join_call() • get_active_call() │ │
│ │ • leave_call() • get_call_history() │ │
│ │ • reject_call() │ │
│ └──────────────────┬───────────────────────────────────┘ │
│ │ │
│ ┌──────────────────▼───────────────────────────────────┐ │
│ │ Realtime Events (FIXED) │ │
│ │ (realtime_events_fixed.py) │ │
│ │ │ │
│ │ • update_user_status() • heartbeat() │ │
│ │ • get_online_users() • cleanup_stale_users() │ │
│ └──────────────────┬───────────────────────────────────┘ │
│ │ │
│ ┌──────────────────▼───────────────────────────────────┐ │
│ │ DATABASE (MariaDB) │ │
│ │ │ │
│ │ Chat Call Session │ Chat Call Participant │ │
│ │ Chat User Activity │ Chat Room │ │
│ │ Chat Message │ Chat Room Member │ │
│ └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘