Bugfixes, reconnection in client, readme
This commit is contained in:
@ -15,6 +15,8 @@ class Message implements JsonSerializable
|
||||
const MSGTYPE_EXECUTE = 'execute';
|
||||
/** @var string Execute result */
|
||||
const MSGTYPE_RESULT = 'result';
|
||||
/** @var string Error message */
|
||||
const MSGTYPE_ERROR = 'error';
|
||||
/** @var string Notify event */
|
||||
const MSGTYPE_NOTIFY = 'notify';
|
||||
/** @var string Registry update (command list set and update) */
|
||||
@ -29,7 +31,7 @@ class Message implements JsonSerializable
|
||||
|
||||
public function __construct(string $messageType, array $messageData = [], ?string $uuid = null)
|
||||
{
|
||||
$this->uuid = ($uuid && Uuid::isValid($uuid)) ? $uuid : (string)Uuid::v7();
|
||||
$this->uuid = $uuid ?? (string)Uuid::v7();
|
||||
$this->messageType = $messageType;
|
||||
$this->messageData = $messageData;
|
||||
}
|
||||
|
Reference in New Issue
Block a user