Thruway\AbstractSession::getTransport PHP Method

getTransport() public method

Get transport
public getTransport ( ) : Thruway\Transport\TransportInterface
return Thruway\Transport\TransportInterface
    public function getTransport()
    {
        return $this->transport;
    }

Usage Example

Esempio n. 1
0
 /**
  * @param AbstractSession $session
  * @param Message $msg
  * @return mixed|void
  */
 public function onMessage(AbstractSession $session, Message $msg)
 {
     $this->manager->debug("Broker onMessage for " . json_encode($session->getTransport()->getTransportDetails()) . ": " . json_encode($msg));
     if ($msg instanceof PublishMessage) {
         $this->processPublish($session, $msg);
     } elseif ($msg instanceof SubscribeMessage) {
         $this->processSubscribe($session, $msg);
     } elseif ($msg instanceof UnsubscribedMessage) {
         $this->processUnsubscribe($session, $msg);
     } else {
         $session->sendMessage(ErrorMessage::createErrorMessageFromMessage($msg));
     }
 }
All Usage Examples Of Thruway\AbstractSession::getTransport