PAMI
PAMI copied to clipboard
Add `getSocket()` method to `ClientImpl` class
Getting the underlying socket might be necessary when PAMI is used as a part of a larger program.
For example, incorporating PAMI in ReactPHP EventLoop:
$loop = Factory::create();
$loop->addReadStream($PAMIClient->getSocket(), function($stream) use($PAMIClient) {
$PAMIClient->process();
});
// ...
$loop->run();