OpenSwoole Hook TLS

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

The OpenSwoole\Runtime::HOOK_TLS flag will enable coroutine support for TLS sockets and streams. Support was added in OpenSwoole v4.2.0.

Example

<?php

Co::set(['hook_flags' => OpenSwoole\Runtime::HOOK_TLS]);
Last updated on August 31, 2022