chaos-ws/laravel-chaos-broadcaster

Chaos Websocket broadcaster

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/chaos-ws/laravel-chaos-broadcaster

1.0 2023-10-07 07:00 UTC

This package is auto-updated.

Last update: 2026-01-07 11:31:44 UTC


README

You can install using the Composer package manager:

composer require chaos-ws/laravel-chaos-broadcaster

Configuration

Add Chaos redis database configuration

Add new redis database to config/database.php:

	'redis' => [
		'chaos' => [
		    'host' => env('CHAOS_HOST', '127.0.0.1'),
		    'password' => null,
		    'port' => env('CHAOS_PORT', 6379),
		    'database' => 1,
		],

Add Chaos broadcast configuration

You will need to add Chaos broadcast configuration to config/broadcasting.php file:

	'chaos' => [
	    'driver' => 'chaos',
	    'connection' => 'chaos',

	    'key' => env('PUSHER_APP_KEY'),
	    'secret' => env('PUSHER_APP_SECRET'),
	    'app_id' => env('PUSHER_APP_ID'),
	    'options' => [
	        'cluster' => env('PUSHER_APP_CLUSTER'),
	        'encrypted' => true,
	        'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
	        'port' => env('PUSHER_APP_PORT', '6001'),
	        'scheme' => 'http'
	    ],
	],

Change broadcast driver

Next, you will need to add & configure Chaos connection CHAOS_HOST and CHAOS_PORT, then change your broadcast driver to chaos in your .env file:

BROADCAST_DRIVER=chaos

CHAOS_HOST=127.0.0.1
CHAOS_PORT=6379