requestLogger = $requestLogger; } public function onOpen(ConnectionInterface $connection, RequestInterface $request = null) { $this->requestLogger->clear(); $connection->send( str(new Response( 200, ['Content-Type' => 'application/json'], '' )) ); $connection->close(); } }