diff --git a/src/Concerns/SerializesConnections.php b/src/Concerns/SerializesConnections.php index 982b4f26..0ade4580 100644 --- a/src/Concerns/SerializesConnections.php +++ b/src/Concerns/SerializesConnections.php @@ -15,7 +15,6 @@ public function __serialize(): array { return [ 'id' => $this->id(), - 'identifier' => $this->identifier(), 'application' => $this->app()->id(), 'origin' => $this->origin(), 'lastSeenAt' => $this->lastSeenAt, @@ -29,7 +28,6 @@ public function __serialize(): array public function __unserialize(array $values): void { $this->id = $values['id']; - $this->identifier = $values['identifier']; $this->application = app(ApplicationProvider::class)->findById($values['application']); $this->origin = $values['origin']; $this->lastSeenAt = $values['lastSeenAt'] ?? null; diff --git a/src/Connection.php b/src/Connection.php index 6452f529..f778a4df 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -3,13 +3,14 @@ namespace Laravel\Reverb; use Laravel\Reverb\Concerns\GeneratesIdentifiers; +use Laravel\Reverb\Concerns\SerializesConnections; use Laravel\Reverb\Contracts\Connection as ConnectionContract; use Laravel\Reverb\Events\MessageSent; use Ratchet\RFC6455\Messaging\Frame; class Connection extends ConnectionContract { - use GeneratesIdentifiers; + use GeneratesIdentifiers, SerializesConnections; /** * The normalized socket ID.