Esempio n. 1
0
 /**
  * Process Shutdown session
  */
 public function shutdown()
 {
     // we want to immediately remove
     // all references
     $this->onClose();
     $this->transport->close();
 }
Esempio n. 2
0
 /**
  * Starts the close sequence
  */
 public function close()
 {
     $this->client->setAttemptRetry(false);
     $this->transport->close();
 }
Esempio n. 3
0
 /**
  * Handle close transport
  *
  * @param \Thruway\Transport\TransportInterface $transport
  */
 public function onClose(TransportInterface $transport)
 {
     Logger::debug($this, "onClose from " . json_encode($transport->getTransportDetails()));
     $this->sessions->detach($transport);
 }
Esempio n. 4
0
 /**
  * Handle close transport
  *
  * @param \Thruway\Transport\TransportInterface $transport
  */
 public function onClose(TransportInterface $transport)
 {
     Logger::debug($this, "onClose from " . json_encode($transport->getTransportDetails()));
     /* @var  $session \Thruway\Session */
     $session = $this->sessions[$transport];
     $session->onClose();
     $this->sessions->detach($transport);
 }
Esempio n. 5
0
 public function onClose(TransportInterface $transport)
 {
     $this->manager->debug("onClose from " . json_encode($transport->getTransportDetails()));
     /** @var  $session Session */
     $session = $this->sessions[$transport];
     $session->onClose();
     $this->sessions->detach($transport);
 }