PHPackages                             jilenloa/echo-socketcluster-broadcast-driver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. jilenloa/echo-socketcluster-broadcast-driver

ActiveLibrary[HTTP &amp; Networking](/categories/http)

jilenloa/echo-socketcluster-broadcast-driver
============================================

Laravel socketcluster broadcaster. This is compatible with Laravel Echo client

0189JavaScriptCI failing

Since Mar 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jilenloa/echo-socketcluster-broadcast-driver)[ Packagist](https://packagist.org/packages/jilenloa/echo-socketcluster-broadcast-driver)[ RSS](/packages/jilenloa-echo-socketcluster-broadcast-driver/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Broadcast Driver for Echo SocketCluster Server
======================================================

[](#laravel-broadcast-driver-for-echo-socketcluster-server)

[![Build Status](https://camo.githubusercontent.com/c28506710d4361ed3f0d86cb6ffbf3a80d5461ea09cb6a69c7b238a7299d105e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a696c656e6c6f612f6563686f2d736f636b6574636c75737465722d62726f6164636173742d6472697665722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jilenloa/echo-socketcluster-broadcast-driver)[![Total Downloads](https://camo.githubusercontent.com/09a82db477c8d7959c1fdbd0dfc4fe7fbf8fbcc84fbcfa3f2394071532f10e00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a696c656e6c6f612f6563686f2d736f636b6574636c75737465722d62726f6164636173742d6472697665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jilenloa/echo-socketcluster-broadcast-driver)

It's supported on PHP 7.1+, Laravel 5.8+

Before you can use this library, you first need to setup a server "echo-socketcluster-server". It works similarly to the default "laravel-echo-server". However, it is installed when you run the vendor:publish command. Find that below.

```
php artisan vendor:publish --tag=echosocketcluster
```

Echo Compatible Server using SocketCluster
------------------------------------------

[](#echo-compatible-server-using-socketcluster)

The echo-socketcluster-server package is created using SocketCluster and it's part of this repo and you can copy it to any folder of your choice. It comes with its own package.json, so you would need to run the npm install command inside the folder afterwards.

For more information on SocketCluster, visit .

Laravel Installation
--------------------

[](#laravel-installation)

Install package using Composer

```
composer require jilenloa/echo-socketcluster-broadcast-driver:dev-master
```

Add below to your broadcasting.php file.

```
'echosocketcluster' => [
    'driver' => 'echosocketcluster',
],
```

Add this configuration to your .env file. Update the current setting for BROADCAST\_DRIVER to the one below

```
BROADCAST_DRIVER=echosocketcluster #"redis" is also compatible with this broadcast server just like the default laravel-echo

ECHO_SC_HOST=localhost:8001
ECHO_SC_TOKEN=echo-server-token
REDIS_KEY_PREFIX=laravel_ # just like you would set in laravel-echo-server.json
SOCKETCLUSTER_PORT=8001
SOCKETCLUSTER_WS_ENGINE=uws # defaule engine is "ws"
SOCKETCLUSTER_HTTP_TOKEN=echo-server-token
```

If you have not done this, you can publish the configuration and echo-socketcluster-server files using the command:

```
php artisan vendor:publish --tag=echosocketcluster
```

You can then later update the package later using composer:

```
composer update
```

Laravel Echo Client
-------------------

[](#laravel-echo-client)

```
npm install laravel-echo
npm install laravel-echo-connector-socketcluster
```

Below is a sample use of the Laravel Echo client.

```
import Echo from "laravel-echo";
import SocketClusterConnector from "laravel-echo-connector-socketcluster";
window.socketClusterClient = require('./socketcluster-client');

let echo = new Echo({
    client: socketClusterClient,
    broadcaster: SocketClusterConnector,
      auth: {
        headers: {
            //add custom headers here, useful for JWT authentication
        },
        hostname: 'localhost:8001', //laravel host to authorize channels. this is sometimes optional
      },
      socketcluster: {
            hostname: 'localhost',
            port: 8001
        }
    });
```

For more information on laravel-echo visit .

**Finally**

- Before testing, ensure that you have started the echo-socketcluster-server.

If you experience any challenge, don't hesitate to submit an issue [here](https://github.com/jilenloa/echo-socketcluster-broadcast-driver/issues).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed1cbb31d5b273172bda15e9de9f3534d3455acbed06feaa6af88234fa30b214?d=identicon)[jilenloa](/maintainers/jilenloa)

---

Top Contributors

[![jilenloa](https://avatars.githubusercontent.com/u/1678787?v=4)](https://github.com/jilenloa "jilenloa (21 commits)")[![jilenloa-scn](https://avatars.githubusercontent.com/u/254558451?v=4)](https://github.com/jilenloa-scn "jilenloa-scn (3 commits)")

### Embed Badge

![Health badge](/badges/jilenloa-echo-socketcluster-broadcast-driver/health.svg)

```
[![Health](https://phpackages.com/badges/jilenloa-echo-socketcluster-broadcast-driver/health.svg)](https://phpackages.com/packages/jilenloa-echo-socketcluster-broadcast-driver)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M316](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
