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

0191JavaScriptCI 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 3w ago

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

Popularity11

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://avatars.githubusercontent.com/u/1678787?v=4)[Jimmy Ilenloa](/maintainers/jilenloa)[@jilenloa](https://github.com/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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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