Abstraction over sockets in applications to make code more testable and portable across various reactive frameworks.
Testing async applications in ReactPHP and similar frameworks can be very cumbersome. Also your code is tightly bound to the framework you base your code on.
This library provide complete abstraction of stream from react and gives a possibility to switch to another framework at any point in time.
Just implement custom EventEmitter
in your favorite framework and you are done.
Even more you can combine multiple emitters in multi-process application, e.g. http server using libuv and ipc (socket pairs) using simple stream-select.
composer require ecomdev/reactive-socket
This project is licensed under the MIT License - see the LICENSE file for details