Download the PHP package smart-crowd/centrifuge-broadcaster without Composer
On this page you can find all versions of the php package smart-crowd/centrifuge-broadcaster. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smart-crowd/centrifuge-broadcaster
More information about smart-crowd/centrifuge-broadcaster
Files in smart-crowd/centrifuge-broadcaster
Package centrifuge-broadcaster
Short Description Centrifuge and centrifugo broadcaster for laravel 5.1
License MIT
Informations about the package centrifuge-broadcaster
centrifuge-broadcaster
Centrifuge and centrifugo broadcaster for laravel 5.1
Centrifuge is not supported at this time because changes made during the upgrade Centrifugo to 1.0 broken backward compatibility.
If you can not go to Centrifugo, use the package version 0.3.1
Installation
composer require smart-crowd/centrifuge-broadcaster
-
In
config/broadcasting
: - Add provider and alias in
config/app.php
Server configuration
http://fzambia.gitbooks.io/centrifugal/content/index.html
Send messages to centrifugo
You should just fire broadcastable event. See http://laravel.com/docs/5.1/events#broadcasting-events. Don't forget, that events are broadcasted into queued jobs, so configure your queues.
Connect from client
Use oficial centrifuge client library https://github.com/centrifugal/centrifuge-js. In your view:
All versions of centrifuge-broadcaster with dependencies
illuminate/container Version 5.1.*
predis/predis Version ^1.0
guzzlehttp/guzzle Version 6.*