stop() public method

Stops the preview-session and deletes the data.
public stop ( string $token )
$token string To identify the preview-session
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function onClose(ConnectionInterface $conn, MessageHandlerContext $context)
 {
     $this->preview->stop($context->get('previewToken'));
     $context->clear();
 }