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

Multievent support

parent 7f21404c
Branches
No related tags found
No related merge requests found
Pipeline #12582 passed
......@@ -203,12 +203,14 @@ sub register ($class, $self, $conf) {
$self->helper( "notify" => sub ( $c, $event, $payload ) { #TODO: event_id
my $event_id = 0; #TODO - parametr!
my $content = {
event => $event,
payload => $payload,
};
$self->redis->pubsub->notify( notify => encode_json($content) );
$self->redis->pubsub->notify( "notify:$event_id" => encode_json($content) );
});
}
......
openapi: 3.0.3
info:
version: "3.2.1"
version: "3.2.2"
title: CF Online
description: CF Online
license:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment