How bakhtadzegivi/rocket.chat works
Rocket.Chat is a customizable communications platform for private real-time conversations, including colleague and customer communication. The repository tree shows server APIs, authentication and authorization, apps, federation, and omnichannel features; the excerpts provide concrete runtime flows for DDP messaging, the embedded Livechat widget, UIKit interactions, and VoIP setup. The graph focuses on those evidenced flows and represents other major product areas as subsystems without guessing their internal calls. Unsampled subsystems and links are limited by the available excerpts.
Main entry points: App.js Widget application · useVoipClient.ts VoIP client hook · Server.ts DDP server · useUIKitStateManager.tsx UIKit state hook
Components 29
Collaboration platform
- Meteor client
apps/meteor/client/main.ts - Message actions
apps/meteor/app/ui-message/client/ActionManager.js - UIKit state hook
apps/meteor/client/UIKit/hooks/useUIKitStateManager.tsx - Router context
packages/ui-contexts/src/RouterContext.ts - Query parameter hook
packages/ui-contexts/src/hooks/useQueryStringParameter.ts - Session context
packages/ui-contexts/src/SessionContext.ts
Realtime transport
- DDP WebSocket client
ee/apps/ddp-streamer/src/Client.ts - DDP server
ee/apps/ddp-streamer/src/Server.ts - Meteor method service
apps/meteor/server/sdk/index.ts
Customer Livechat
- Widget application
packages/livechat/src/components/App/App.js - Widget state store
packages/livechat/src/store/index.js - Widget connection
packages/livechat/src/lib/connection.js - Widget hooks
packages/livechat/src/lib/hooks.js - Widget triggers
packages/livechat/src/lib/triggers.js - Widget API
packages/livechat/src/api.ts - Livechat API
packages/livechat/src/api.ts
Voice calling
- VoIP client hook
apps/meteor/client/providers/CallProvider/hooks/useVoipClient.ts - VoIP user factory
apps/meteor/client/lib/voip/SimpleVoipUser.ts - VoIP user
apps/meteor/client/lib/voip/VoIPUser.ts - VoIP event types
packages/core-typings/src/voip/IVoipClientEvents.ts - VoIP queue aggregation
apps/meteor/client/lib/voip/QueueAggregator.ts - VoIP stream
apps/meteor/client/lib/voip/Stream.ts
Platform services
- REST API
apps/meteor/app/api/server/api.js - Authentication
apps/meteor/app/authentication/server/index.ts - Authorization
apps/meteor/app/authorization/server/index.js - Apps engine
apps/meteor/app/apps/server/orchestrator.js - App source storage
apps/meteor/app/apps/server/storage/AppGridFSSourceStorage.ts - Federation
apps/meteor/app/federation-v2/server/application/RoomServiceReceiver.ts
Other components
- People
Connections 12
- People → Meteor client: use conversations
- People → REST API: use API
- DDP WebSocket client → DDP server: dispatches calls
ee/apps/ddp-streamer/src/Client.ts - DDP server → Meteor method service: falls back to
ee/apps/ddp-streamer/src/Server.ts - Widget application → Widget state store: updates state
packages/livechat/src/components/App/App.js - Widget application → Widget connection: initializes
packages/livechat/src/components/App/App.js - Widget application → Widget hooks: initializes
packages/livechat/src/components/App/App.js - Widget application → Widget triggers: processes
packages/livechat/src/components/App/App.js - VoIP client hook → VoIP user factory: creates client
apps/meteor/client/providers/CallProvider/hooks/useVoipClient.ts - VoIP client hook → VoIP user: uses client
apps/meteor/client/providers/CallProvider/hooks/useVoipClient.ts - UIKit state hook → Message actions: subscribes to
apps/meteor/client/UIKit/hooks/useUIKitStateManager.tsx - Query parameter hook → Router context: reads parameter
packages/ui-contexts/src/hooks/useQueryStringParameter.ts