Socket gun based on Elephant.io for Laravel.
PHP
Latest commit 20debfe Jan 10, 2017 @marcus-campos Receiver
Permalink
Failed to load latest commit information.
config Socket gun Jan 10, 2017
src Receiver Jan 10, 2017
README.md
composer.json

README.md

Laravel Socket.io

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