Skip to content

myriad support#87

Open
mahrous-deriv wants to merge 6 commits intoderiv-com:masterfrom
mahrous-deriv:Async_RPC_POC
Open

myriad support#87
mahrous-deriv wants to merge 6 commits intoderiv-com:masterfrom
mahrous-deriv:Async_RPC_POC

Conversation

@mahrous-deriv
Copy link
Copy Markdown

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
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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