Exemple #1
0
 /**
  * Closes the connection
  *
  * @return $this
  */
 public function close()
 {
     $this->logger->debug('Closing the connection to the websocket');
     $this->engine->close();
     $this->isConnected = false;
     return $this;
 }
Exemple #2
0
 /**
  * Closes the connection
  *
  * @return $this
  */
 public function close()
 {
     $this->engine->close();
     $this->isConnected = false;
     return $this;
 }
 public function __construct(EngineInterface $engine, $action, Exception $previous = null)
 {
     parent::__construct(sprintf('The action "%s" is not supported by the engine "%s"', $engine->getName(), $action), 0, $previous);
 }
Exemple #4
0
 /**
  * Closes the connection
  *
  * @return $this
  */
 public function close()
 {
     null !== $this->logger && $this->logger->debug('Closing the connection to the websocket');
     $this->engine->close();
     return $this;
 }