Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 6a04f9c

Browse files
committed
Removed replicator-message-published
1 parent 0ca6355 commit 6a04f9c

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

resources/views/dashboard.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class="rounded-full px-3 py-1 inline-block text-sm"
428428
return 'bg-red-700 text-white';
429429
}
430430
431-
if (['api_message', 'replicator-message-published', 'replicator-message-received'].includes(log.type)) {
431+
if (['api_message', 'replicator-message-received'].includes(log.type)) {
432432
return 'bg-black text-white';
433433
}
434434

src/ChannelManagers/RedisChannelManager.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,6 @@ public function broadcastAcrossServers($appId, ?string $socketId, string $channe
287287
$payload->socketId = $socketId;
288288
$payload->serverId = $serverId ?: $this->getServerId();
289289

290-
DashboardLogger::log($appId, DashboardLogger::TYPE_REPLICATOR_MESSAGE_PUBLISHED, [
291-
'fromServerId' => $serverId,
292-
'fromSocketId' => $socketId,
293-
'channel' => $channel,
294-
'payload' => $payload,
295-
]);
296-
297290
return $this->publishClient
298291
->publish($this->getRedisKey($appId, $channel), json_encode($payload))
299292
->then(function () use ($appId, $socketId, $channel, $payload, $serverId) {

src/DashboardLogger.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ class DashboardLogger
2222

2323
const TYPE_REPLICATOR_UNSUBSCRIBED = 'replicator-unsubscribed';
2424

25-
const TYPE_REPLICATOR_MESSAGE_PUBLISHED = 'replicator-message-published';
26-
2725
const TYPE_REPLICATOR_MESSAGE_RECEIVED = 'replicator-message-received';
2826

2927
/**
@@ -39,7 +37,6 @@ class DashboardLogger
3937
self::TYPE_API_MESSAGE,
4038
self::TYPE_REPLICATOR_SUBSCRIBED,
4139
self::TYPE_REPLICATOR_UNSUBSCRIBED,
42-
self::TYPE_REPLICATOR_MESSAGE_PUBLISHED,
4340
self::TYPE_REPLICATOR_MESSAGE_RECEIVED,
4441
];
4542

0 commit comments

Comments
 (0)