for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\LaravelWebSockets\Server;
use Ratchet\ConnectionInterface;
use stdClass;
class MockableConnection implements ConnectionInterface
{
/**
* Create a new Mockable connection.
*
* @param string|int $appId
* @param string $socketId
* @return void
*/
public function __construct($appId, string $socketId)
$this->app = new stdClass;
app
$this->app->id = $appId;
$this->socketId = $socketId;
socketId
}
* Send data to the connection.
* @param string $data
* @return \Ratchet\ConnectionInterface
public function send($data)
//
* Close the connection.
public function close()