Skip to content
Snippets Groups Projects
Verified Commit 105f664a authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Removed tracing

parent 5ab82f89
No related branches found
No related tags found
No related merge requests found
Pipeline #12590 passed
...@@ -23,24 +23,22 @@ sub main { ...@@ -23,24 +23,22 @@ sub main {
my $listener = $pubsub->listen( my $listener = $pubsub->listen(
"notify:$event_id" => sub($pubsub, $payload, $channel) { "notify:$event_id" => sub($pubsub, $payload, $channel) {
$c->trace("$pubsub, $payload, $channel");
$c->send(decode("UTF-8", $payload)); $c->send(decode("UTF-8", $payload));
} }
); );
my $listener_online = $pubsub->listen( my $listener_online = $pubsub->listen(
"online:$event_id" => sub($pubsub, $payload, $channel) { "online:$event_id" => sub($pubsub, $payload, $channel) {
$c->trace("$pubsub, $payload, $channel"); my @counts = split ' ', $payload;
# my @counts = split ' ', $payload; $c->send({json => {
# $c->send({json => { event => 'online_users_updated',
# event => 'online_users_updated', payload => {
# payload => { all => $counts[0]+0,
# all => $counts[0]+0, members => $counts[1]+0,
# members => $counts[1]+0, group_size_full => $counts[2]+0,
# group_size_full => $counts[2]+0, group_size_half => $counts[3]+0,
# group_size_half => $counts[3]+0, }
# } }});
# }});
} }
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment