public function handleConnectionClose(ConnectionCloseEvent $event) { unset($this->sessions[$event->session->getSessionId()]); // TODO: should this be a message dispatched from the Transport? $event->session->onClose(); }