Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getSocket() method to ClientImpl class #169

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add getSocket() method to ClientImpl class #169

wants to merge 2 commits into from

Conversation

alexmnv
Copy link

@alexmnv alexmnv commented Jun 21, 2018

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();

@coveralls
Copy link

coveralls commented Jun 21, 2018

Coverage Status

Coverage decreased (-0.04%) to 92.199% when pulling 78fd71b on alexmnv:patch-1 into f586d0f on marcelog:master.

dkgroot added a commit to chan-sccp/PAMI that referenced this pull request Apr 24, 2019
PR: marcelog#169
PR Description: Add `getSocket()` method to `ClientImpl` class
Provided By: @alexmnv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants