public function onClose(ConnectionInterface $conn, MessageHandlerContext $context) { $this->preview->stop($context->get('previewToken')); $context->clear(); }