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 {
my $listener = $pubsub->listen(
"notify:$event_id" => sub($pubsub, $payload, $channel) {
$c->trace("$pubsub, $payload, $channel");
$c->send(decode("UTF-8", $payload));
}
);
my $listener_online = $pubsub->listen(
"online:$event_id" => sub($pubsub, $payload, $channel) {
$c->trace("$pubsub, $payload, $channel");
# my @counts = split ' ', $payload;
# $c->send({json => {
# event => 'online_users_updated',
# payload => {
# all => $counts[0]+0,
# members => $counts[1]+0,
# group_size_full => $counts[2]+0,
# group_size_half => $counts[3]+0,
# }
# }});
my @counts = split ' ', $payload;
$c->send({json => {
event => 'online_users_updated',
payload => {
all => $counts[0]+0,
members => $counts[1]+0,
group_size_full => $counts[2]+0,
group_size_half => $counts[3]+0,
}
}});
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment