# beyondcode/laravel-websockets

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/beyondcode-laravel-websockets).**

5,083 stars · 654 forks · PHP · MIT · archived

## Links

- GitHub: https://github.com/beyondcode/laravel-websockets
- Homepage: https://beyondco.de/docs/laravel-websockets
- awesome-repositories: https://awesome-repositories.com/repository/beyondcode-laravel-websockets.md

## Topics

`hacktoberfest` `laravel` `laravel-echo` `pusher` `websockets`

## Description

This is a self-hosted WebSocket server for Laravel applications designed to provide real-time communication and replace third-party managed messaging services. It provides a server-side PHP implementation of the WebSocket standard, enabling full-duplex communication between clients and servers.

The project implements a Pusher-compatible protocol to integrate with existing frontend client libraries. It includes a dedicated debug dashboard for monitoring active connections, tracking network traffic, and analyzing real-time server performance.

The system supports Laravel event broadcasting and real-time application communication. It utilizes custom WebSocket controllers to define logic for handling connection events and messages.

## Tags

### Networking & Communication

- [WebSocket Servers](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/distributed-computing/communication-protocols/websocket-implementations/websocket-servers.md) — Provides a self-hosted WebSocket server specifically tailored for the Laravel ecosystem.
- [Real-time Communication Servers](https://awesome-repositories.com/f/networking-communication/real-time-communication-servers.md) — Serves as a private server for handling full-duplex communication via the WebSocket protocol.
- [WebSocket Implementations](https://awesome-repositories.com/f/networking-communication/websocket-implementations.md) — Implements the WebSocket standard on the server side for integration within PHP applications.
- [Protocol-Compatible Backends](https://awesome-repositories.com/f/networking-communication/api-integration-frameworks/api-management-integration/api-compatibility/protocol-compatible-backends.md) — Implements the Pusher API specification to ensure compatibility with existing frontend client libraries.

### Part of an Awesome List

- [Real-Time WebSocket Servers](https://awesome-repositories.com/f/awesome-lists/devtools/websockets-and-real-time/real-time-websocket-servers.md) — Provides a server-side implementation of messaging protocols to facilitate private real-time communication. ([source](https://docs.beyondco.de/laravel-websockets/))
- [Connection Controllers](https://awesome-repositories.com/f/awesome-lists/devtools/websockets-and-real-time/real-time-websocket-servers/connection-controllers.md) — Allows the definition of custom logic and controllers to handle connection events and real-time messages. ([source](https://docs.beyondco.de/laravel-websockets/))

### Data & Databases

- [Event Stream Broadcasters](https://awesome-repositories.com/f/data-databases/record-updating/live-update-subscriptions/event-stream-broadcasters.md) — Integrates with Laravel to broadcast server-side events to connected clients via WebSockets.

### Programming Languages & Runtimes

- [Asynchronous PHP Servers](https://awesome-repositories.com/f/programming-languages-runtimes/php-application-servers/asynchronous-php-servers.md) — Utilizes an asynchronous PHP server framework to handle concurrent WebSocket connections efficiently.

### Software Engineering & Architecture

- [Non-Blocking Event Loops](https://awesome-repositories.com/f/software-engineering-architecture/non-blocking-event-loops.md) — Employs a non-blocking event loop to manage multiple concurrent WebSocket connections without stalling the server.

### Web Development

- [Real-Time Communication](https://awesome-repositories.com/f/web-development/real-time-communication.md) — Enables persistent, bidirectional data streaming for instant updates between the server and clients.

### System Administration & Monitoring

- [WebSocket Monitors](https://awesome-repositories.com/f/system-administration-monitoring/real-time-monitoring-dashboards/websocket-monitors.md) — Ships a dedicated debug dashboard for monitoring active connections and analyzing real-time server performance.
- [Real-Time Traffic Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/real-time-traffic-monitoring.md) — Tracks real-time connection statistics and network activity through an integrated observability dashboard. ([source](https://docs.beyondco.de/laravel-websockets/))
