marcuscampos/laravel-socket

This package is abandoned and no longer maintained. No replacement package was suggested.

Socket gun based on Elephant.io for Laravel

v1.0.0 2017-01-10 17:03 UTC

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'));