workerman/phpsocket.io-emitter

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

This package is auto-updated.

Last update: 2024-12-14 11:58:59 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'=>'.....'));