Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Nov 14, 2016
1 parent 67e7beb commit 4ab867f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public function broadcast(array $channels, $event, array $payload = [])
{
$socket = Arr::pull($payload, 'socket');

if (true === $response = $this->pusher->trigger($this->formatChannels($channels), $event, $payload, $socket)) {
$response = $this->pusher->trigger($this->formatChannels($channels), $event, $payload, $socket);

if ((is_array($response) && $response['status'] == 200) || $response === true) {
return;
}

Expand Down

0 comments on commit 4ab867f

Please sign in to comment.