src/Socket/AbstractSocketClient.php
public static function createConnected(
        int $socketDomain,
        SocketErrorHandler $errorHandler,
        AbstractConnectionResource $connectionResource = null
    ): self
    {
        return new static($socketDomain, $errorHandler, $connectionResource);
    }
public static function createConnected(
        int $socketDomain,
        SocketErrorHandler $errorHandler,
        AbstractConnectionResource $connectionResource = null
    ): self
    {
        return new static($socketDomain, $errorHandler, $connectionResource);
    }
Создает объект с подключенным сокетом.

@param int $socketDomain
@param SocketErrorHandler $errorHandler
@param AbstractConnectionResource $connectionResource

@return AbstractSocketClient

@throws ConnectionException|\LogicException