Download the PHP package socketio-php/emitter without Composer
On this page you can find all versions of the php package socketio-php/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 emitter
Emitter
Event emitter component.
Installation
Test
API
Emitter#on(event, fn)
Register an event
handler fn
.
Emitter#once(event, fn)
Register a single-shot event
handler fn
,
removed immediately after it is invoked the
first time.
Emitter#off(event, fn)
- Pass
event
andfn
to remove a listener. - Pass
event
to remove all listeners on that event. - Pass nothing to remove all listeners on all events.
Emitter#emit(event, ...)
Emit an event
with variable option args.
Emitter#listeners(event)
Return an array of callbacks, or an empty array.
Emitter#hasListeners(event)
Check if this emitter has event
handlers.
License
MIT
All versions of emitter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.22
The package socketio-php/emitter contains the following files
Loading the files please wait ....