Skip to content

Conversation

@mahrous-deriv
Copy link

No description provided.

my ($self) = @_;
$self->{already_waiting} //= $self->redis->subscribe([$self->whoami], $self->redis->curry::weak::on(message => $self->curry::weak::_on_message));
$self->{already_waiting} //=
$self->redis->subscribe(['myriad.' . $self->whoami, $self->whoami],
Copy link

@billmarriott-deriv billmarriott-deriv Apr 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to only add the prefix based on msg_group so we can subscribe to a single channel?

Copy link
Author

@mahrous-deriv mahrous-deriv Apr 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can also pass the prefix from our API and prepend it to $self->whoami.

my ($self) = @_;
$self->{already_waiting} //= $self->redis->subscribe([$self->whoami], $self->redis->curry::weak::on(message => $self->curry::weak::_on_message));
$self->{already_waiting} //=
$self->redis->subscribe(['myriad.' . $self->whoami, $self->whoami],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not add myriad hardcoded in proxy, it's an open source module. Pass it as a config or as a parameter

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can pass it from websocket.conf.

@mahrous-deriv mahrous-deriv changed the title WIP myriad support Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants