/** * @param \Ratchet\MessageComponentInterface $app The Ratchet application stack to host * @param \React\Socket\ServerInterface $socket The React socket server to run the Ratchet application off of * @param \React\EventLoop\LoopInterface|null $loop The React looper to run the Ratchet application off of */ public function __construct(MessageComponentInterface $app, ServerInterface $socket, LoopInterface $loop = null) { parent::__construct($app, $socket, $loop); $this->socket = $socket; }