workerman/phpsocket.io-emitter

v1.0.2 2021-01-26 03:50 UTC

This package is auto-updated.

Last update: 2024-11-14 11:54:14 UTC


README

Install

composer require workerman/phpsocket.io-emitter

example

$emitter = new Emitter();
$emitter->in('one room')->emit('newmsg', 'hello');
$emitter->emit('newmsg', array('type'=>'blog','content'=>'.....'));