public function __construct(TcpSocketFactory $socketFactory) { $this->socketFactory = $socketFactory; }