From 527cf62e52bbe37dfe2ffb452a95ea31eca4292a Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 7 Feb 2022 09:09:27 -0500 Subject: [PATCH 1/7] Update musonza_chat.php --- config/musonza_chat.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/musonza_chat.php b/config/musonza_chat.php index c1e660e..c18b266 100755 --- a/config/musonza_chat.php +++ b/config/musonza_chat.php @@ -8,6 +8,8 @@ * Event: Musonza\Chat\Eventing\MessageWasSent */ 'broadcasts' => false, + 'broadcast_connection' => 'sync', + 'broadcast_queue' => 'default', /* * Specify the fields that you want to return each time for the sender. From cebc495efbe12be37b90a4429fdadb08e57ac157 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 7 Feb 2022 09:13:02 -0500 Subject: [PATCH 2/7] Update MessageWasSent.php --- src/Eventing/MessageWasSent.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Eventing/MessageWasSent.php b/src/Eventing/MessageWasSent.php index 6de2cfb..79b2bdd 100644 --- a/src/Eventing/MessageWasSent.php +++ b/src/Eventing/MessageWasSent.php @@ -16,6 +16,8 @@ class MessageWasSent extends Event implements ShouldBroadcast use InteractsWithSockets; use SerializesModels; public $message; + public $connection = config('musonza_chat.broadcast_connection', 'sync'); + public $queue = config('musonza_chat.broadcast_queue', 'default'); public function __construct(Message $message) { From 1c9646e73c5418060af3e872e8ccf68e74a76386 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 7 Feb 2022 09:25:51 -0500 Subject: [PATCH 3/7] Update MessageWasSent.php --- src/Eventing/MessageWasSent.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Eventing/MessageWasSent.php b/src/Eventing/MessageWasSent.php index 79b2bdd..f26789a 100644 --- a/src/Eventing/MessageWasSent.php +++ b/src/Eventing/MessageWasSent.php @@ -16,12 +16,14 @@ class MessageWasSent extends Event implements ShouldBroadcast use InteractsWithSockets; use SerializesModels; public $message; - public $connection = config('musonza_chat.broadcast_connection', 'sync'); - public $queue = config('musonza_chat.broadcast_queue', 'default'); + public $connection = 'sync'; + public $queue = 'default'; public function __construct(Message $message) { $this->message = $message; + $this->connection = config('musonza_chat.broadcast_connection', 'database'); + $this->queue = config('musonza_chat.broadcast_queue', 'default'); } /** From 82d2e5c88aa4f5d2af6e9bcecfd6e4f2e97b1f37 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 7 Feb 2022 09:33:28 -0500 Subject: [PATCH 4/7] Update MessageWasSent.php --- src/Eventing/MessageWasSent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Eventing/MessageWasSent.php b/src/Eventing/MessageWasSent.php index f26789a..a3befd6 100644 --- a/src/Eventing/MessageWasSent.php +++ b/src/Eventing/MessageWasSent.php @@ -22,7 +22,7 @@ class MessageWasSent extends Event implements ShouldBroadcast public function __construct(Message $message) { $this->message = $message; - $this->connection = config('musonza_chat.broadcast_connection', 'database'); + $this->connection = config('musonza_chat.broadcast_connection', 'sync'); $this->queue = config('musonza_chat.broadcast_queue', 'default'); } From 09377c02466107478bc1dc95061320452e1ba3fa Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 7 Feb 2022 09:38:05 -0500 Subject: [PATCH 5/7] Update MessageWasSent.php --- src/Eventing/MessageWasSent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Eventing/MessageWasSent.php b/src/Eventing/MessageWasSent.php index a3befd6..7c60fe6 100644 --- a/src/Eventing/MessageWasSent.php +++ b/src/Eventing/MessageWasSent.php @@ -16,8 +16,8 @@ class MessageWasSent extends Event implements ShouldBroadcast use InteractsWithSockets; use SerializesModels; public $message; - public $connection = 'sync'; - public $queue = 'default'; + public $connection; + public $queue; public function __construct(Message $message) { From 69600c1352edbfa8000da6f75bd6e6f09c923d22 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 7 Feb 2022 09:41:00 -0500 Subject: [PATCH 6/7] Update musonza_chat.php --- config/musonza_chat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/musonza_chat.php b/config/musonza_chat.php index c18b266..852ed2e 100755 --- a/config/musonza_chat.php +++ b/config/musonza_chat.php @@ -7,9 +7,9 @@ * Channel: mc-chat-conversation.2, * Event: Musonza\Chat\Eventing\MessageWasSent */ - 'broadcasts' => false, + 'broadcasts' => false,, 'broadcast_connection' => 'sync', - 'broadcast_queue' => 'default', + 'broadcast_queue' => 'default', /* * Specify the fields that you want to return each time for the sender. From 1a6c2a6de0b92f738f5ed9eeb42e1ce9c868343a Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 7 Feb 2022 09:43:33 -0500 Subject: [PATCH 7/7] Update musonza_chat.php --- config/musonza_chat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/musonza_chat.php b/config/musonza_chat.php index 852ed2e..5d43195 100755 --- a/config/musonza_chat.php +++ b/config/musonza_chat.php @@ -7,7 +7,7 @@ * Channel: mc-chat-conversation.2, * Event: Musonza\Chat\Eventing\MessageWasSent */ - 'broadcasts' => false,, + 'broadcasts' => false, 'broadcast_connection' => 'sync', 'broadcast_queue' => 'default',