4 Commits

Author SHA1 Message Date
1abb9f8bf5 Fixed Packagist 2021-03-30 17:47:12 -03:00
2c3c78769c FIX: Readme 2021-03-30 17:41:51 -03:00
0b990b6726 License and Readme 2021-03-30 17:39:46 -03:00
440894a7f9 Events WebSocket 2021-03-30 16:34:22 -03:00

View File

@ -8,20 +8,10 @@ I wrote this project because I had a hard time finding any alternative to handli
## Installation ## Installation
Use [composer] with the git repository `https://github.com/Aldarien/events` (don't have [Packagist] setup correctly). Use [composer].
``` ```
{ composer require aldarien/events
"require": {
"aldarien/events": "~1"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/Aldarien/events"
}
]
}
``` ```
## Use ## Use
@ -103,9 +93,8 @@ Set the event listeners for `open`, `message`, `error` and `close` and start sen
Take note of the last lines where the message received by the **app** needs an action equivalent to the event names added before and the data associated if any (can be missing). Take note of the last lines where the message received by the **app** needs an action equivalent to the event names added before and the data associated if any (can be missing).
[PHP]: http://php.net [PHP]: http://php.net
[WebSocket]: https://en.wikipedia.org/wiki/WebSocket [WebSockets]: https://en.wikipedia.org/wiki/WebSocket
[Ratchet]: http://socketo.me/ [Ratchet]: http://socketo.me/
[Slim]: https://slimframework.com [Slim]: https://slimframework.com
[PHP-DI]: https://php-di.org/ [PHP-DI]: https://php-di.org/
[composer]: https://getcomposer.org [composer]: https://getcomposer.org
[Packagist]: https://packagist.org