From 33b06fb8820a876c29deb9722460e911ab86c21d Mon Sep 17 00:00:00 2001 From: sobolevna Date: Tue, 15 Oct 2019 10:43:46 +0300 Subject: [PATCH] Video and message events must be strictly synchronious --- .gitignore | 3 ++- src/Events/NewConversationCreated.php | 4 ++-- src/Events/NewConversationMessage.php | 4 ++-- src/Events/NewGroupConversationMessage.php | 4 ++-- src/Events/VideoChatStart.php | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 6a4227f..9ac4619 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /.idea/ /vendor/ -composer.lock \ No newline at end of file +composer.lock +/nbproject/ \ No newline at end of file diff --git a/src/Events/NewConversationCreated.php b/src/Events/NewConversationCreated.php index 39337cd..397b3ca 100644 --- a/src/Events/NewConversationCreated.php +++ b/src/Events/NewConversationCreated.php @@ -5,11 +5,11 @@ use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; +use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; -class NewConversationCreated implements ShouldBroadcast +class NewConversationCreated implements ShouldBroadcastNow { use Dispatchable, InteractsWithSockets, SerializesModels; diff --git a/src/Events/NewConversationMessage.php b/src/Events/NewConversationMessage.php index 5438dee..bf3e3ac 100644 --- a/src/Events/NewConversationMessage.php +++ b/src/Events/NewConversationMessage.php @@ -5,11 +5,11 @@ use Carbon\Carbon; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; +use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; -class NewConversationMessage implements ShouldBroadcast +class NewConversationMessage implements ShouldBroadcastNow { use Dispatchable, InteractsWithSockets, SerializesModels; /** diff --git a/src/Events/NewGroupConversationMessage.php b/src/Events/NewGroupConversationMessage.php index 30193a8..d8e1c84 100644 --- a/src/Events/NewGroupConversationMessage.php +++ b/src/Events/NewGroupConversationMessage.php @@ -5,11 +5,11 @@ use Carbon\Carbon; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; +use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; -class NewGroupConversationMessage implements ShouldBroadcast +class NewGroupConversationMessage implements ShouldBroadcastNow { use Dispatchable, InteractsWithSockets, SerializesModels; diff --git a/src/Events/VideoChatStart.php b/src/Events/VideoChatStart.php index d900527..8108f30 100644 --- a/src/Events/VideoChatStart.php +++ b/src/Events/VideoChatStart.php @@ -4,11 +4,11 @@ use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; +use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; -class VideoChatStart implements ShouldBroadcast +class VideoChatStart implements ShouldBroadcastNow { use Dispatchable, InteractsWithSockets, SerializesModels;