workerman/phpsocket.io-emitter

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

This package is auto-updated.

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