diff --git a/src/Servers/Reverb/Console/Commands/StartServer.php b/src/Servers/Reverb/Console/Commands/StartServer.php index a3b3e26d..5d11191b 100644 --- a/src/Servers/Reverb/Console/Commands/StartServer.php +++ b/src/Servers/Reverb/Console/Commands/StartServer.php @@ -4,10 +4,8 @@ use Illuminate\Console\Command; use Laravel\Reverb\Concerns\InteractsWithAsyncRedis; -use Laravel\Reverb\Contracts\Logger; use Laravel\Reverb\Jobs\PingInactiveConnections; use Laravel\Reverb\Jobs\PruneStaleConnections; -use Laravel\Reverb\Loggers\CliLogger; use Laravel\Reverb\Output; use Laravel\Reverb\Servers\Reverb\Factory as ServerFactory; use React\EventLoop\Loop; diff --git a/src/Servers/Reverb/Factory.php b/src/Servers/Reverb/Factory.php index 3d9f6c5d..786bbe18 100644 --- a/src/Servers/Reverb/Factory.php +++ b/src/Servers/Reverb/Factory.php @@ -29,7 +29,7 @@ public static function make(string $host = '0.0.0.0', string $port = '8080', Loo { set_time_limit(0); ob_implicit_flush(); - + $loop = $loop ?: Loop::get(); $socket = new SocketServer("{$host}:{$port}", [], $loop); diff --git a/src/WebSockets/WebSocketMiddleware.php b/src/WebSockets/WebSocketMiddleware.php index 4e7c9761..5653e271 100644 --- a/src/WebSockets/WebSocketMiddleware.php +++ b/src/WebSockets/WebSocketMiddleware.php @@ -3,16 +3,15 @@ namespace Laravel\Reverb\WebSockets; use Closure; +use Illuminate\Support\Str; use Laravel\Reverb\Application; use Laravel\Reverb\Contracts\ApplicationProvider; use Laravel\Reverb\Contracts\ConnectionManager; use Laravel\Reverb\Server; use Laravel\Reverb\Servers\Reverb\Connection; use Laravel\Reverb\WebSockets\Request as WebSocketRequest; -use Laravel\Reverb\WebSockets\WsConnection; use Psr\Http\Message\ServerRequestInterface; use React\Http\Message\Response; -use Illuminate\Support\Str; class WebSocketMiddleware {