public function createNewSession(TransportInterface $transport) { $session = new Session($transport); $session->setLoop($this->getLoop()); return $session; }