We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the following:
$client = new \Rx\Websocket\Client('ws://127.0.0.1:9090/ws'); $client->subscribe(function (MessageSubject $ms) { $disp = $ms->subscribe(); addTimer(2, function () use ($disp) { echo "Dispose...\n"; $disp->dispose(); }); });
The websocket should close when there are no more subscriptions.
The text was updated successfully, but these errors were encountered:
I have something that might help with this, will file a PR when I'm on the train to work 👍
Sorry, something went wrong.
End the request not the response when dispose is called
b77c511
Should aid with RxPHP#9
No branches or pull requests
With the following:
The websocket should close when there are no more subscriptions.
The text was updated successfully, but these errors were encountered: