Tags: AndreTeixeira1998/client
Tags
Add support for client certificates (php-mqtt#41) * Add support for client certificates * Fix line indentation * move client certificate parameters into ConnectionSettings; add passphrase option * Fix code style * Move client certificate validation logic to client * Trim whitespace Co-authored-by: Marvin Mall <marvin-mall@msn.com>
Added 'retained' parameter to subscriptions callbacks for published m… …essages (php-mqtt#19) * Added 'retained' parameter to subscriptions callbacks for published messages If the publisher set the retained flag, the broker will honor it and send the published messages to the subscriber as soon as they subscrib. But the subscribe callback might need to know whether the message was delivered live or if it was retained, which could mean the message is stale. * Make $retained false by default and add PhpDoc * Explain subscription callback in PhpDoc Co-authored-by: Marvin Mall <marvin-mall@msn.com>
Fix: use addition to increase message size (php-mqtt#7) When using a username and password to connect to a broker, the message size has been manipulated using string concatenation instead of mathematical addition. This caused an issue with `chr()` expecting an integer and not a string. It also would have lead to wrong information being sent.
Reset the last ping time only after a ping is sent, rather than after… ( php-mqtt#5) * Reset the last ping time only after a ping is sent, rather than after any broker command is received. If broker messages are received too frequently, it causes pings to be never sent and the broker disconnecting the client. * Reset ping timer when data is sent to the broker Co-authored-by: Brad Greco <brad@kalaam.org> Co-authored-by: Namoshek <Namoshek@users.noreply.github.com>
Merge pull request php-mqtt#2 from Kekos/silent-sockets Make writes to sockets silent with the @-operator to avoid PHP notices when the socket has been closed by the server.
Merge pull request php-mqtt#1 from Kekos/fix-generate-client-id-type Fix: TypeError thrown from generateRandomClientId()