Force broadcastAcrossAllServers even if the channel exists locally
This commit is contained in:
parent
7f6b8fa2c8
commit
7519da4a08
|
|
@ -38,17 +38,17 @@ class TriggerEvent extends Controller
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($channel) {
|
if ($channel) {
|
||||||
$channel->broadcastToEveryoneExcept(
|
$channel->broadcastLocallyToEveryoneExcept(
|
||||||
(object) $payload,
|
(object) $payload,
|
||||||
$request->socket_id,
|
$request->socket_id,
|
||||||
$request->appId
|
$request->appId
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
$this->channelManager->broadcastAcrossServers(
|
|
||||||
$request->appId, $request->socket_id, $channelName, (object) $payload
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->channelManager->broadcastAcrossServers(
|
||||||
|
$request->appId, $request->socket_id, $channelName, (object) $payload
|
||||||
|
);
|
||||||
|
|
||||||
StatisticsCollector::apiMessage($request->appId);
|
StatisticsCollector::apiMessage($request->appId);
|
||||||
|
|
||||||
DashboardLogger::log($request->appId, DashboardLogger::TYPE_API_MESSAGE, [
|
DashboardLogger::log($request->appId, DashboardLogger::TYPE_API_MESSAGE, [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue