Log
This commit is contained in:
parent
2f73bd0b59
commit
55cc89ab8c
|
@ -59,7 +59,7 @@ class Server implements MessageComponentInterface
|
||||||
public function onOpen(ConnectionInterface $conn)
|
public function onOpen(ConnectionInterface $conn)
|
||||||
{
|
{
|
||||||
$this->clients->attach($conn);
|
$this->clients->attach($conn);
|
||||||
$this->output->writeln('New client');
|
$this->output->writeln('New connection');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -99,6 +99,7 @@ class Server implements MessageComponentInterface
|
||||||
public function onClose(ConnectionInterface $conn)
|
public function onClose(ConnectionInterface $conn)
|
||||||
{
|
{
|
||||||
$this->clients->detach($conn);
|
$this->clients->detach($conn);
|
||||||
|
$this->output->writeln('Connection closed');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue