> For the complete documentation index, see [llms.txt](https://moataz-salahs-organization.gitbook.io/chatter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moataz-salahs-organization.gitbook.io/chatter/chatter-features/core-concepts.md).

# Core concepts

<mark style="color:blue;">**Real-Time Messaging**</mark><mark style="color:blue;">:</mark>

Laravel Echo and Pusher work together to manage real-time updates:

**Events:** Messages like `MessageSent & MessageRead` are broadcasted to specific channels.

**Clients:** Subscribe to channels and listen to these events to update the user interface instantly.

<mark style="color:blue;">**Events & Broadcasting**</mark><mark style="color:blue;">:</mark>

Custom events, such as `MessageSent & MessageRead`, are dispatched and broadcasted to

**Private Channels:** Secure channels for user-specific updates.

<mark style="color:blue;">**State Management with Livewire**</mark><mark style="color:blue;">:</mark>

Chatter app manages the state by binding properties like messages and handling real-time updates directly from the server to the front end.

Binding properties like `messages`, handling updates, and triggering actions on the front end.

<mark style="color:blue;">**Alpine.js Integration**</mark><mark style="color:blue;">:</mark>

Alpine.js enhances interactivity on the client side.

**Usage:** Manage dropdowns, toggle elements, or handle custom events seamlessly.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://moataz-salahs-organization.gitbook.io/chatter/chatter-features/core-concepts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
