Download the PHP package valeriitropin/socketio-emitter without Composer
On this page you can find all versions of the php package valeriitropin/socketio-emitter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package socketio-emitter
PHP socket.io emitter
Async implementation of socket.io emitter written in php. Built on top of ReactPHP components.
Installation
How to use
API
Emitter
__construct(React\EventLoop\LoopInterface $loop, $options = [], ValeriiTropin\Socketio\PackerInterface $packer = null)
$options:
key: pub/sub events prefix (socket.io)namespace: socket.io namespace (/)uri: Redis connection string, see docs (localhost)client: pub client
to($room): ValeriiTropin\Socketio\Emitter
Adds room and returns current Emitter instance
of($namespace): ValeriiTropin\Socketio\Emitter
Creates new Emitter instance with given namespace.
emit($event, ...$args): React\Promise\Promise
Emits event with data to set rooms.
getLoop(): React\EventLoop\LoopInterface
Returns loop instance.
Links
All versions of socketio-emitter with dependencies
PHP Build Version
Package Version
The package valeriitropin/socketio-emitter contains the following files
Loading the files please wait ...