wip
This commit is contained in:
parent
2eaae22ec0
commit
286629fd98
|
|
@ -30,7 +30,9 @@ class ConnectionLogger extends Logger implements ConnectionInterface
|
||||||
|
|
||||||
public function send($data)
|
public function send($data)
|
||||||
{
|
{
|
||||||
$this->info("Connection id {$this->connection->socketId} sending message {$data}");
|
$socketId = $this->connection->socketId ?? null;
|
||||||
|
|
||||||
|
$this->info("Connection id {$socketId} sending message {$data}");
|
||||||
|
|
||||||
$this->connection->send($data);
|
$this->connection->send($data);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,9 @@ class WebsocketsLogger extends Logger implements MessageComponentInterface
|
||||||
|
|
||||||
public function onClose(ConnectionInterface $connection)
|
public function onClose(ConnectionInterface $connection)
|
||||||
{
|
{
|
||||||
$this->warn("Connection id {$connection->socketId} closed.");
|
$socketId = $connection->socketId ?? null;
|
||||||
|
|
||||||
|
$this->warn("Connection id {$socketId} closed.");
|
||||||
|
|
||||||
$this->app->onClose(ConnectionLogger::decorate($connection));
|
$this->app->onClose(ConnectionLogger::decorate($connection));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue