Skip to content

Commit

Permalink
updated event filter not to proxy the initial (cached) event
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Nov 12, 2023
1 parent 7bc1335 commit b806084
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion config/config.kzsu.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,15 @@
'ws_endpoint' => 'ws://127.0.0.1:32080/push/onair',
'http_endpoints' => [
"filter" => function($msg) {
// don't proxy Zootopia events
// don't proxy initial (cached) event
$zootopia = preg_match('/zootopia/i', $msg);
if($this->initial ?? true) {
$this->initial = false;
$this->zootopia = $zootopia;
return;
}

// don't proxy Zootopia events
if($zootopia) {
if($this->zootopia ?? false)
return;
Expand Down

0 comments on commit b806084

Please sign in to comment.