Skip to content
Thunder-BluePhoenixPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

F Chat

Frappe Chat Application

Installation

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_chat

Contributing

This 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 install

Pre-commit is configured to use the following tools for checking and formatting your code:

  • ruff
  • eslint
  • prettier
  • pyupgrade

License

gpl-3.0

F-Chat


🎓 ARCHITECTURE

┌─────────────────────────────────────────────────────────────┐
│                        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             │ │
│  └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages