Is there any way to receive the old sent message before subscriber init? #1856
|
I'm using callback mode to receive the message. For everytime my publisher sent a message before the subscriber init, my subscriber can't receive it anymore. Do we have any ways to achieve it? |
Answered by
DownerCase
Dec 12, 2024
Replies: 2 comments 1 reply
|
As far I know - No. If the publisher only sends messages to the subscribers it is aware of. I'd recommend setting up any subscribers and publishers your program will need as early as possible. You could consider a synchronization delay between initializing the publisher/subscribers and sending the data; decreasing the registration refresh period, or using the client-server service API (if you need reliable call and response). |
1 reply
Answer selected by
rex-schilasky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far I know - No. If the publisher only sends messages to the subscribers it is aware of. I'd recommend setting up any subscribers and publishers your program will need as early as possible.
You could consider a synchronization delay between initializing the publisher/subscribers and sending the data; decreasing the registration refresh period, or using the client-server service API (if you need reliable call and response).