Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-25.2.0 | composer require openswoole/core:22.1.5
<?php OpenSwoole\Coroutine\Client->enableSSL(): bool
None
Returns true
when successful and false
when not.
Enable SSL encryption dynamically.
Even though you can setup SSL connections right from the start of a client using the configuration, you can also use this method to enable SSL dynamically when you need to.
You can only use this method when SSL has not been enabled through the client configuration, you must also establish a connection to a server first. When calling this method, it will block until the SSL handshake has finished.