Skip to content

Conversation

Alex6092
Copy link
Contributor

This refactoring add a loopOnce method to MqttClient class.
This method allows the MQTT client implementation to be integrated to an event loop (like ReactPHP - Ratchet).

Alex6092 and others added 3 commits June 15, 2022 17:08
This refactoring add a loopOnce method to MqttClient class. This method allows the MQTT client implementation to be integrated to an event loop (like ReactPHP - Ratchet).
@Namoshek
Copy link
Collaborator

Thank you for the contribution, I like the idea!

To better align the code with the remaining code, I've added the method to the interface and changed a few minor things. As soon as I've found out what is wrong with the build, I'll merge and release the change. Looks like a TLS issue, probably support for some old TLS version was dropped...

@Namoshek Namoshek mentioned this pull request Jun 15, 2022
@Namoshek
Copy link
Collaborator

No idea what's wrong with the build. Running it in #117 from a branch in this repository did work and even fix the result in this PR. Strange.

@Namoshek Namoshek changed the title Refactor MQTT client loop implementation to allow easier integration to third party event loop Refactor MQTT client loop implementation to allow easier integration with third party event loops Jun 15, 2022
@Namoshek Namoshek merged commit d543813 into php-mqtt:master Jun 15, 2022
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