code: private function initSocket(array $config)
      {
          $this->connectionFactory = new SocketFactory($config);
          $this->connectionType = self::CONNECTION_TYPE_SOCKET;
      }
docs: @param array $config
  
  @throws ConnectionFactoryException