improved status logging

This commit is contained in:
Exodus4D
2017-01-09 19:20:45 +01:00
parent 4aab60fed3
commit 5671aa170d

View File

@@ -84,12 +84,19 @@ class MapUpdate implements MessageComponentInterface {
}
}
/**
* @param ConnectionInterface $conn
*/
public function onClose(ConnectionInterface $conn) {
$this->unSubscribeConnection($conn);
$this->log('DISCONNECTED connection. ID (' . $conn->resourceId .') ');
}
/**
* @param ConnectionInterface $conn
* @param \Exception $e
*/
public function onError(ConnectionInterface $conn, \Exception $e) {
$this->unSubscribeConnection($conn);
$this->log('ERROR "' . $e->getMessage() . '" ID (' . $conn->resourceId .') ');