for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\DuskDashboard\Ratchet;
use BeyondCode\DuskDashboard\DuskProcessFactory;
use Ratchet\ConnectionInterface;
use Ratchet\RFC6455\Messaging\MessageInterface;
use Ratchet\WebSocket\MessageComponentInterface;
class Socket implements MessageComponentInterface
{
public static $connections = [];
public function onOpen(ConnectionInterface $connection)
self::$connections[] = $connection;
}
public function onMessage(ConnectionInterface $from, MessageInterface $msg)
$data = json_decode($msg);
if ($data->method === 'startTests') {
$process = DuskProcessFactory::make();
$process->start();
public function onClose(ConnectionInterface $connection)
public function onError(ConnectionInterface $connection, \Exception $e)