Skip to content

Commit

Permalink
Guide user how to exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Dec 30, 2018
1 parent 0d302b1 commit 6de87b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
\Amp\Loop::run(function() use ($addressPort, $clientHandler, $logger, $firstSection, $bufferHandler) {
$bufferHandler();
$server = \Amp\socket\listen($addressPort);
$firstSection->writeln('<info>Connection opened at http://' . $server->getAddress() . '</info>');
$firstSection->writeln("<info>Connection opened at http://{$server->getAddress()}\nPress CTRL+C to exit.</info>");
while ($socket = yield $server->accept()) {
$clientHandler($socket);
}
Expand Down

0 comments on commit 6de87b9

Please sign in to comment.