marcuscampos / laravel-socket
Socket gun based on Elephant.io for Laravel
Installs: 227
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/marcuscampos/laravel-socket
Requires
- wisembly/elephant.io: ^3.2
This package is auto-updated.
Last update: 2019-08-06 18:41:57 UTC
README
Socket gun based on wisembly/socket.io(socket.io v1.* emitter only) for Laravel.
Instalation ####Run
composer require marcuscampos/laravel-socket
####Add to config/app.php providers
MarcusCampos\LaravelSocket\SocketServiceProvider::class,
If you want custom name add to aliases
'SocketIo' => \MarcusCampos\LaravelSocket\Emitter\Facades\Emitter::class,
####Publish config
php artisan vendor:publish
####Usage
Emitter::emit('channelOrEvent', array('foo' => 'bar'));