walkor / mqtt

Asynchronous MQTT client for PHP based on workerman.
207 stars 46 forks source link

add ssl to workerman/mqtt client #1

Closed wyne1986 closed 6 years ago

walkor commented 6 years ago

Thank you for your pr. But I think it's better to use $option['ssl'] to enable/disable the SSL. I added ssl support and enable ssl like this.

$mqtt = new Workerman\Mqtt\Client('mqtt://127.0.0.1:1883', ['ssl' => true]);